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}

Authorizations
Path parameters
workspaceIdstringrequired
recordingIdstringrequired
Responses
curl -L \
  --url '/workspaces/{workspaceId}/recordings/{recordingId}' \
  --header 'Authorization: Bearer jwt'
{
  "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": {
      "number": "text",
      "anonymous": true,
      "callerIdName": "text",
      "identity": "text",
      "countryIsoCode": "text",
      "type": "pstn"
    }
  },
  "receiver": {
    "contact": {
      "id": "text",
      "identifierKey": "text",
      "identifierValue": "text"
    },
    "number": {
      "number": "text",
      "anonymous": true,
      "callerIdName": "text",
      "identity": "text",
      "countryIsoCode": "text",
      "type": "pstn"
    }
  },
  "origin": "call-command-record",
  "duration": 1,
  "stereo": true,
  "format": "text",
  "transcription": true,
  "conferenceId": "123e4567-e89b-12d3-a456-426614174000",
  "url": "text",
  "roomInfoUrl": "text",
  "createdAt": "2025-02-21T18:17:11.907Z",
  "updatedAt": "2025-02-21T18:17:11.907Z",
  "endedAt": "2025-02-21T18:17:11.907Z",
  "startedAt": "2025-02-21T18:17:11.907Z"
}
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

Was this helpful?