Get Recording
Stream the audio recording of a call in your workspace.
GET
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-idstringrequiredThe workspace the call belongs to.
Path Parameters
callHistoryIdstringrequiredThe 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/oggContent-Disposition:inlineCache-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
| Status | Body | When |
|---|---|---|
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.oggLast updated on