Skip to content

Recordings API

Call recordings. A scope of their own: reading calls does not grant hearing them.

The same operations are in the interactive API reference, and the whole contract is in the OpenAPI document.

GET/v1/recordings

List recordings

Returns recordings of phone calls, newest first. Recordings are kept for a limited time; expires_at says when each one is deleted.

Needs recordings:read, which is separate from calls:read: a key that may list calls cannot list recordings. Listing is free and returns metadata only. Use the download operation to get the audio.

Pass call_id to get the recording of one call. A call with no recording, or an id that is not this organization's, returns an empty list rather than 404.

Paged, newest first: limit is 1 to 100 (default 50, out of range values are clamped) and cursor is the next_cursor of the previous page. The cursor is opaque and never built by the client; a cursor this API did not return is a 400. has_more is true while another page exists. There is no total.

Scope recordings:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
call_idquerystringNoOnly the recording of this call.
limitqueryintegerNoHow many items to return. Default 50, at most 100.
cursorquerystringNoThe `next_cursor` of the previous page. Opaque; never built by the client.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

GET/v1/recordings/{id}

Get a recording

Returns the details of one recording: direction, the customer's number, the business line, length, size and when it will be deleted. It does not return the audio; use the download operation for that.

Needs recordings:read. Reading is free. Answers 404 for a recording that is not this organization's or that has already been deleted.

Scope recordings:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
idpathstringYesThe resource id.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.

GET/v1/recordings/{id}/download

Get a recording download link

Returns a signed, short-lived link to the audio. A new link is made on every request, so ask again when one expires instead of storing it.

Needs recordings:read. Each download request is written to the organization's audit trail, because recordings are personal data. Fetching the link itself needs no key, so treat the link as a secret and do not log it or hand it to a browser you do not control.

expires_in says how many seconds the link works for. Answers 404 for a recording that is not this organization's.

Scope recordings:read. Accepts: API key or personal access token. Open in the API reference

ParameterInTypeRequiredDescription
idpathstringYesThe resource id.
AirFone-VersionheaderstringNoThe API version to use, as a date. Defaults to the version the account was pinned to.