Get a call recording

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

Get channel call recording

Get a channel call recording

GET/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings/{recordingId}
Authorization
Path parameters
workspaceId*string (uuid)

The ID of the workspace

callId*string (uuid)

The ID for a call

channelId*string (uuid)

The ID for a channel

recordingId*string (uuid)

The ID for a call recording

Response

OK

Body
id*Id-2 (string (uuid))
callId*Id-2 (string (uuid))
channelIdChannelId (string (uuid))
status*CallRecordingStatus (enum)
acceptedongoingpausedcompletedavailableabsentfailed
origin*CallRecordingOrigin (enum)
call-command-recordcall-command-record-callcreate-callbridge-call
durationinteger
stereoboolean
endCausestring
createdAt*string (date-time)
updatedAt*string (date-time)
startedAtstring (date-time)
endedAtstring (date-time)
Request
const response = await fetch('/workspaces/{workspaceId}/channels/{channelId}/calls/{callId}/recordings/{recordingId}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer jwt"
    },
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "callId": "123e4567-e89b-12d3-a456-426614174000",
  "channelId": "123e4567-e89b-12d3-a456-426614174000",
  "status": "accepted",
  "origin": "call-command-record",
  "duration": 0,
  "stereo": false,
  "endCause": "text",
  "createdAt": "2024-12-21T12:15:48.435Z",
  "updatedAt": "2024-12-21T12:15:48.435Z",
  "startedAt": "2024-12-21T12:15:48.435Z",
  "endedAt": "2024-12-21T12:15:48.435Z"
}

Example 1: Get a specific call recording

curl "https://nest.messagebird.one/workspaces/8bc02f53-87ac-48d2-b4fd-c2cf856a305f/channels/880d8171-cbab-47bb-81b6-b1a0902da136/calls/0b4cbfa2-813f-4b93-8007-265875bb88bb/recordings/32b98cd8-db4b-4a47-816e-ff7ff72b1da6" \
     -H 'Authorization: Bearer {Token}'

Last updated