Get a Recording

In order to retrieve a recording metadata, you can use the following endpoint.

Get recording

Get recording

GET/workspaces/{workspaceId}/recordings/{recordingId}
Authorization
Path parameters
workspaceId*string
recordingId*string
Response

The recording metadata

Body
id*Recording ID

The ID for the recording.

source*RecordingSource (enum)
callconference
sourceId*Source ID

The ID for the source.

channelIdChannel ID

The ID for the channel.

status*RecordingStatus (enum)
acceptedcompletedongoingpausedavailableabsentfailed
directionRecordingDirection (enum)
incomingoutgoing
originatorChannelCallOriginatorOrReceiver
receiverChannelCallOriginatorOrReceiver
origin*RecordingOrigin (enum)
call-command-recordcall-command-record-callcreate-callbridge-call
durationinteger (int64)
stereo*boolean
format*string
transcription*boolean
conferenceIdConference ID

The ID for the conference.

urlstring
roomInfoUrlstring
createdAt*string (date-time)
updatedAt*string (date-time)
endedAtstring (date-time)
startedAtstring (date-time)
Request
const response = await fetch('/workspaces/{workspaceId}/recordings/{recordingId}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer jwt"
    },
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "source": "call",
  "sourceId": "123e4567-e89b-12d3-a456-426614174000",
  "channelId": "123e4567-e89b-12d3-a456-426614174000",
  "status": "accepted",
  "direction": "incoming",
  "originator": {
    "contact": {
      "id": "text",
      "identifierKey": "text",
      "identifierValue": "text"
    },
    "number": {
      "type": "pstn",
      "number": "text",
      "anonymous": false,
      "callerIdName": "text",
      "identity": "text",
      "countryIsoCode": "text"
    }
  },
  "receiver": {
    "contact": {
      "id": "text",
      "identifierKey": "text",
      "identifierValue": "text"
    },
    "number": {
      "type": "pstn",
      "number": "text",
      "anonymous": false,
      "callerIdName": "text",
      "identity": "text",
      "countryIsoCode": "text"
    }
  },
  "origin": "call-command-record",
  "duration": 0,
  "stereo": false,
  "format": "text",
  "transcription": false,
  "conferenceId": "123e4567-e89b-12d3-a456-426614174000",
  "url": "text",
  "roomInfoUrl": "text",
  "createdAt": "2024-12-21T12:09:32.661Z",
  "updatedAt": "2024-12-21T12:09:32.661Z",
  "endedAt": "2024-12-21T12:09:32.661Z",
  "startedAt": "2024-12-21T12:09:32.661Z"
}
curl "/workspaces/{workspaceId}/recordings/{recordingId}" \
     -H 'Authorization: Bearer {Token}'

In order to directly retrieve the recording media, you must add the extension .mp3 to the above request.

/workspaces/{workspaceId}/recordings/{recordingId}.mp3

If successful, the above request will return a "307 Temporary Redirect” with the recording file.

Last updated