Skip to main content
POST
/
get-signed-recording-url
curl -X POST https://api.magpipe.ai/functions/v1/get-signed-recording-url \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"call_id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef"}'
{
  "call_id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef",
  "recording_url": "https://storage.supabase.co/v1/object/public/recordings/7f3d8e00.mp3",
  "recordings": [
    {
      "url": "https://storage.supabase.co/v1/object/public/recordings/7f3d8e00.mp3",
      "label": "main",
      "duration_seconds": 125,
      "source": "signalwire",
      "status": "synced",
      "created_at": "2024-01-15T10:32:20Z"
    }
  ]
}
Retrieve recording URLs for a specific call. Returns all available recordings (e.g., main conversation, transfer segments). If recordings haven’t been synced to permanent storage yet, the original provider URL is returned as a fallback.

Request Body

call_id
string
required
The unique identifier of the call to get recordings for.

Response

call_id
string
The call identifier.
recording_url
string
URL of the primary recording.
recordings
array
Array of all recording segments for this call.Each recording contains:
  • url — Direct URL to the audio file
  • label — Segment type: main, transfer_conference, reconnect_to_agent, etc.
  • duration_seconds — Length in seconds
  • source — Origin: signalwire, livekit, or unknown
  • statussynced (permanent URL) or pending_sync (provider URL, may expire)
  • created_at — ISO 8601 timestamp
curl -X POST https://api.magpipe.ai/functions/v1/get-signed-recording-url \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"call_id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef"}'
{
  "call_id": "7f3d8e00-a1b2-4c3d-9e4f-567890abcdef",
  "recording_url": "https://storage.supabase.co/v1/object/public/recordings/7f3d8e00.mp3",
  "recordings": [
    {
      "url": "https://storage.supabase.co/v1/object/public/recordings/7f3d8e00.mp3",
      "label": "main",
      "duration_seconds": 125,
      "source": "signalwire",
      "status": "synced",
      "created_at": "2024-01-15T10:32:20Z"
    }
  ]
}