# Get download URL for note's audio file Retrieve a pre-signed download URL for the audio file associated with a specific note. The URL can be used to download the audio file from S3. The note must belong to the authenticated user's enterprise. This endpoint checks that the media file has been successfully uploaded before generating the download URL. Endpoint: GET /notes/{id}/downloadaudiourl Version: 1.0.0 Security: BearerAuth ## Path parameters: - `id` (string, required) Unique identifier of the note Example: "550e8400-e29b-41d4-a716-446655440000" ## Response 200 fields (application/json): - `success` (boolean, required) Example: true - `status` (string, required) Status of the operation Enum: "success" - `url` (string, required) Pre-signed download URL for the audio file. The URL expires after expiresInSeconds seconds. Example: "https://s3.amazonaws.com/app-data-pbh-prod/media/document_550e8400.m4a?AWSAccessKeyId=..." - `expiresInSeconds` (integer, required) URL expiration time in seconds Example: 3600 ## Response 201 fields (application/json): - `success` (boolean, required) - `status` (string, required) Status indicating the media is still being processed Enum: "processing" - `message` (string, required) Example: "Media is still in progress." ## Response 400 fields (application/json): - `success` (boolean, required) - `status` (string, required) Error status Enum: "error" - `message` (string, required) Example: "Please provide a valid note ID." ## Response 401 fields (application/json): - `success` (boolean, required) - `status` (string, required) Enum: "error" - `message` (string, required) Example: "You are not authorized to perform this operation" ## Response 404 fields (application/json): - `success` (boolean, required) - `status` (string, required) Enum: "error" - `message` (string, required) Example: "Media ID not found for this note." ## Response 500 fields (application/json): - `success` (boolean, required) - `status` (string, required) Enum: "error" - `message` (string, required) Example: "Unable to generate download URL, please contact support."