Trillet AI logo

Get Recording

Stream the audio recording of a call in your workspace.

GEThttps://api.trillet.ai/v2/api/recordings/{callHistoryId}

This is the URL that List Call Histories and Get a Specific Call History return as recordingUrl. Send the same authentication headers as any other API request.

Headers

x-workspace-idstringrequired

The workspace the call belongs to.

Path Parameters

callHistoryIdstringrequired

The call history record ID (the _id from List Call Histories).

Response

On success the response is the audio file itself, streamed with these headers:

  • Content-Type: audio/ogg
  • Content-Disposition: inline
  • Cache-Control: private, max-age=3600

Recordings are Ogg audio. Browsers can play the response in an <audio> element, or you can save it as a .ogg file.

A call has a recording only if recording was on for its call flow when the call took place, and HIPAA mode was off.

Errors

StatusBodyWhen
404{"error": "Call history not found"}No call with that ID exists in this workspace
404{"error": "No recording available for this call"}The call exists but was not recorded
curl https://api.trillet.ai/v2/api/recordings/d8d8d8d8d8d8d8d8d8d8d8d8 \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-workspace-id: YOUR_WORKSPACE_ID" \
  --output call-recording.ogg

Last updated on