Skip to main content
POST
https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1
/
get-signed-recording-url
curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/get-signed-recording-url \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "call_id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef",
    "expires_in": 7200
  }'
{
  "recording_url": "https://storage.example.com/recordings/abc123.wav?token=xyz789&expires=1705320000",
  "expires_at": "2024-01-15T12:00:00Z"
}
Retrieve a signed URL to download or stream a call recording. URLs are temporary and expire after the specified duration.

Request Body

call_id
string
required
The unique identifier of the call to get the recording for.
expires_in
integer
default:3600
URL expiration time in seconds. Default: 3600 (1 hour). Max: 86400 (24 hours).

Response

recording_url
string
Signed URL to access the recording. Use this URL to download or stream the audio file.
expires_at
string
ISO 8601 timestamp when the URL will expire.
curl -X POST https://mtxbiyilvgwhbdptysex.supabase.co/functions/v1/get-signed-recording-url \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "call_id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef",
    "expires_in": 7200
  }'
{
  "recording_url": "https://storage.example.com/recordings/abc123.wav?token=xyz789&expires=1705320000",
  "expires_at": "2024-01-15T12:00:00Z"
}