Skip to main content

Call recordings

A call recording is the saved audio of a phone call — the actual contents of the conversation, not just information about it. That makes it the most sensitive data on this API. This page explains how to fetch recordings, why one call can have several of them, how the recording link works, and the extra permissions that can block access.

A call is not one recording​

A call that came in to a team, was answered, and was then transferred is made up of several "legs" — each a separate connected segment of the call — and each answered leg is recorded separately. That is why the endpoint returns a list, not a single recording.

For example, a support call might go:

  1. A customer dials your support line, and it rings a queue — the call goes to a whole team, ringing their phones, and if everyone is busy the caller waits in line until an agent is free.
  2. Agent A answers — the customer and Agent A are now connected. That stretch is leg 1, and it is recorded.
  3. Agent A transfers the call to Agent B — the customer is now connected to Agent B. That is leg 2, recorded on its own.

So that one call has two legs, and two recordings. A plain call that is simply answered and hung up is just one leg and one recording.

You get a call id from POST /calls/search (your call history) or from the AccountEndedCalls webhook, which includes it on each event.

Calling GET /calls/{id}/recordings returns a list — one entry per recorded leg. These are the fields you get back in each entry — you do not send any of them; the only thing you pass is the call id in the URL. Use them to tell the legs apart, pick the one you want, and play it from its url:

FieldMeaning
urlA secure link that plays the audio of this leg — the recording itself. Covered in detail just below.
uniqueIdIdentifies the leg. Pass it to the single-leg endpoint to re-fetch just this one.
recordingIdOnly when the leg has more than one recording file (a transferred call can record a second channel under the same uniqueId) — tells those files apart. Absent in the common one-file case.
callIdThe phone system's internal id for that leg. On a transferred call it differs from the id in your request path — the request id names the whole call, this one names the single leg. Save it only if you also read the phone system's own call logs directly and need to match this leg to the right entry there; most integrations can ignore it.
startTimeWhen the leg started, RFC 3339 UTC.
durationSecondsThe leg's full length, including ringing.
talkTimeSecondsThe connected portion only. This is the closer match to the length of the audio.
from, toThe two ends of the leg, as the phone system recorded them. On an internal leg these are extensions, not phone numbers.

Picking "the" recording of a transferred call is a judgement only you can make — usually the leg with the largest talkTimeSeconds (the most talk time). Everything you need to decide is in the response, rather than the server guessing for you.

The url field​

url is a secure link hosted on this platform, not the raw storage location.

  • No Authorization header needed. You can hand it straight to an <audio> element (the built-in audio player on a web page), a browser tab, or a transcription service.
  • The account is built into the link's signature (a tamper-proof stamp the server adds, like a wax seal). No one can tamper with the link to reach another account's recording — changing any part of it breaks the signature.
  • It does not expire.
  • Following it either redirects (302) to storage or streams the audio directly, depending on where the recording lives. Either way, just follow it.
Treat the URL as a secret

It does not expire and needs no credential, so anyone who gets hold of it can play the conversation. Do not put it anywhere others might see or store it — a URL a third party logs, an email, a support ticket, or a web page that gets cached.

The raw storage locations are deliberately never returned. For some accounts recordings live in cloud storage; for others they sit on the phone system (PBX) itself and have no direct URL at all. The secure link works the same way for both, so you never have to care where a recording is actually stored.

No recording yet​

A call that exists but was not recorded returns 200 with an empty array:

{ "data": [] }

That is a normal answer — recording is opt-in per number and per user. It is different from 404, which means the call id is not on your account or does not exist at all.

Recordings are written after the call ends and usually appear within a minute. If you poll, treat [] as "not ready yet" and retry with backoff (waiting longer each time). Do not treat it as "never recorded".

A call id belonging to another account also returns 404, never 403 — so guessing ids tells an attacker nothing.

Two gates the scope does not open​

Having the recordings:read scope is required, but it is not always enough on its own. Two other things can still block you:

1. Sensitive-content verification​

If the account has turned on re-verification for sensitive content, recordings require someone to have re-entered their password in the last 15 minutes. That needs a signed-in person at a browser — an API credential has nothing to present for this.

While that setting is on, this endpoint returns 403 for every credential — key or token — and the message says so, rather than a bare "access denied." Turning it off is an account decision, made in the portal.

2. The authorizing user's own permission — OAuth only​

An OAuth token acts as the person who approved it. If that person's role does not include call-recording access (Call reports → allow recordings) in the portal, the token does not get it either. A scope can only narrow what an app acting for a user may do — it can never give the app more than the user has.

API keys are not affected for now: a key is the account's own credential for its own recordings. That changes when owner-role enforcement ships.

Deleting a recording​

DELETE /calls/{callid}/recordings/{uniqueid} deletes every recording file on that leg. DELETE /calls/{callid}/recordings/{uniqueid}/{recordingid} deletes just one file, for a leg that has more than one (the recordingId in the listing). Both answer 204 with no body.

It is permanent — the audio is gone, through this API and in the portal. Every delete is written to the account's audit log.

It needs its own scope, recordings:delete; recordings:read does not include it. On top of the scope, the same rules as the portal apply:

  • Account Owner only. The user behind the credential — a key's run-as user, or the person who approved an OAuth app — must be on the Account Owner role. Anyone else gets 403 permission_denied.
  • You can only delete what you can read. The leg must appear in your own GET /calls/{callid}/recordings listing, so a key's phone number limits apply. A recording you cannot see is 404, the same as one that does not exist.
  • Sensitive-content re-verification (above) blocks deleting as well as reading.
curl -X DELETE \
https://api.account.telebroad.com/api/public/v1/calls/1754489201.884213/recordings/1754489201.884213 \
-H "Authorization: Bearer $TB_KEY"

Limits​

  • Voicemail is not here. A voicemail is a message someone left, not a recording of a two-way conversation, so it is kept separately from call recordings and is not available through this API. If a call ended in voicemail, that voicemail leg is left out of the recordings list.
  • One call per request. There is no bulk endpoint. To cover a date range, list the calls from reports and fetch recordings one call id at a time.
  • If you only need to know whether a call was recorded, the call webhooks already include a recordingUrl on the event — no second call needed.