- Stream endpoint - Returns a JSON object with a presigned URL for browser-native streaming
- Download endpoint - Returns the binary audio file for download
Stream Recording
Get a presigned URL for streaming the call recording in a browser.Endpoint
GET /api/calls/{call_sid}/recording/stream
Path Parameters
Response
Returns a JSON object containing a presigned S3 URL that can be used directly with an HTML5 audio element.The presigned URL supports HTTP range requests, allowing the browser to stream
the audio file without downloading the entire file first. Use this endpoint
for playback in audio players.
Download Recording
Download the recording as a binary audio file.Endpoint
GET /api/calls/{call_sid}/recording/download
Path Parameters
Response
Returns the audio file as a binary stream with appropriate headers for download.This endpoint returns binary audio data, not JSON. The presigned URL used
internally expires after 5 minutes. Use this endpoint when you want to save
the recording to disk.