Get Call Recording
Stream the recording of a phone call that was recorded through Twilio.
GET
This endpoint only serves calls recorded through Twilio. Most recordings, including every web call, are stored by Trillet and served by Get Recording instead. The simplest way to get any recording is the recordingUrl from Call History: it already points at the right endpoint.
Headers
x-workspace-idstringrequiredThe unique identifier of the workspace being accessed.
Path Parameters
callSidstringrequiredThe Twilio Call SID of the call. Call History doesn't return it as a field; it appears only inside recordingUrl for Twilio-recorded calls.
Response
The first Twilio recording for the call, streamed as MP3.
Content-Typestringaudio/mpeg.
Content-Dispositionstringinline; filename="<RecordingSid>.mp3".
Errors
| Status | Body | When |
|---|---|---|
403 | {"error": "Unauthorized access to recording"} | The call belongs to a workspace you aren't a member of |
404 | {"error": "Call details not found"} | No call with that Call SID |
404 | {"error": "No recordings found for this call"} | Twilio has no recording for the call |
500 | {"error": "Unable to fetch recording"} | Any other failure |
HTTP/1.1 200 OK
Content-Type: audio/mpeg
Content-Disposition: inline; filename="RE0123456789abcdef0123456789abcdef.mp3"Last updated on