Skip to main content

Recording Link

When a call is recorded, the post-call webhook can carry a recording_url: a link that plays the call's recording without an API key. This page covers how that link behaves.

The link is the only credential

There is no API key and no login on this link. Anyone who has it can play or download the recording until it expires, and it cannot be revoked early. Treat it as a secret: keep it out of logs, analytics, and pages other people can see, and hand it to a browser only for users who may hear that call.

When to Use This​

  • Play a recording in a browser, a CRM, or a review tool without proxying the audio through your own server.
  • Keep a link next to the call in your own system for short-term review.

To keep a recording longer than 15 days, or to avoid a keyless link altogether, fetch the audio with your API key from Download recording on the Call Data API and store your own copy.

The link is created when the post-call webhook is sent, and only if the agent's post-call webhook includes Recording URL. It is the recording_url field of the payload (shortened):

{
"event": "post_call",
"call_data": { "call_id": "7c2e9b4d1f6a4e3b9d0c5a8f2b1e6d47" },
"recording_url": "https://<your-dronahq-host>/voice-recordings/7c2e9b4d1f6a4e3b9d0c5a8f2b1e6d47"
}
  • Use the URL exactly as the webhook sends it; don't build it yourself.
  • The last path segment is the call's call_id — the same ID the Call Data API uses. Older links end in a different, opaque ID instead and work the same way.
  • recording_url is null when the call has no recording, or when the link could not be created.

Lifetime​

A link works for 15 days from when the webhook created it. After that it returns 410.

After the link expires, use Download recording with your API key. It works for 30 days from the call's start.

Request​

GET /voice-recordings/{call_id}

No headers are required.

Query parameters​

ParameterTypeDefaultDescription
downloadbooleanfalsetrue adds Content-Disposition: attachment so a browser saves the file as recording-<id>.mp3

Headers​

HeaderDirectionDescription
RangerequestOptional. Standard byte range (bytes=0-1048575); the response is 206 Partial Content with Content-Range, so a player can seek and a download can resume
Accept-RangesresponseAlways bytes
Content-LengthresponseThe size of the body (or of the range)
Content-Typeresponseaudio/mpeg

Example​

curl -X GET 'https://<your-dronahq-host>/voice-recordings/<call-id>?download=true' \
-o recording-<call-id>.mp3

In a browser:

<audio controls src="https://<your-dronahq-host>/voice-recordings/<call-id>"></audio>

Responses​

HTTP statusdetailCauseFix
200—The recording, as audio/mpeg—
206—Part of the recording, for a Range request—
404recording not foundNo link exists for this IDUse the URL from the webhook
404recording not yet availableThe link is valid but the file has not reached storage yet — normal in the first minute or two after a call endsRetry shortly. If it persists, check has_recording on Get a call: false means the file was never stored
410recording link has expiredMore than 15 days since the link was createdUse Download recording
416range not satisfiableThe Range header asks for bytes past the end of the recordingCheck Content-Length
502upstream storage errorThe recording store failedRetry
503storage not configuredRecording storage is not configured on this serverContact support

Errors are JSON, with the message as a string in detail: {"detail": "recording link has expired"}.

Recording linkDownload recording
AuthenticationNone — the link is the credentialapi-key header
Where you get itThe post-call webhook's recording_urlBuild it from a call_id
Works for15 days from the webhook30 days from the call's start
From a browserYesNo — server-to-server only

What's Next​