Fetch a call's recording
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Calls/3f0c2a9e-6a51-4d55-9a57-0d2f6e0f8a11/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Calls/3f0c2a9e-6a51-4d55-9a57-0d2f6e0f8a11/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00 \ --header 'Authorization: Basic <credentials>'Fetches one recording of a call. It behaves exactly like GET /Accounts/{auth_id}/Recordings/{recording_sid}, including the .json, .mp3 and .wav suffixes on recording_sid; the call_sid in the path is not checked against the recording.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Account Auth ID
Example
AC000000000000000000Call SID (UUID) the recording belongs to
Example
3f0c2a9e-6a51-4d55-9a57-0d2f6e0f8a11Recording SID (UUID), optionally with .json, .mp3 or .wav
Example
9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00Responses
Section titled “ Responses ”OK
object
Account the recording belongs to.
API version that produced the resource.
Call the recording belongs to (the parent call SID).
Number of audio channels: 1 (mono) or 2 (dual).
Conference the recording belongs to; null for call recordings.
When the recording was created, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
When it was deleted, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”. Only on deleted recordings.
When the recording last changed, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Why it was deleted: api, retention or discarded. Only on deleted recordings.
Length of the recording in seconds.
How the stored audio is encrypted; null when it is not.
object
Rsa-aes: the data key wrapped with RSA-OAEP (SHA-256, MGF1-SHA-256), base64. Never returned for platform-aes.
Ciphertext format: SPE1 (segmented AES-256-GCM).
Base64 nonce prefix of the SPE1 stream.
Platform-aes: id of the platform key-encryption key.
Rsa-aes: SID of the public key that wrapped the data key.
Plaintext bytes per SPE1 segment.
Rsa-aes (customer_key: data key wrapped with your RSA public key) or platform-aes (platform key).
Why a recording is absent: 64001 blocked by policy never, 64004 policy unavailable, 64005 voicemail blocked; null otherwise.
Where to fetch the audio: this API’s Recordings/{sid}.mp3 or .wav, or for older unencrypted recordings the URL the media server reported.
“success” when a playback link is included ({recording_sid}.json only).
Price of the recording; always null (recordings are not charged separately).
Currency of price.
15 minute presigned URL of the stored object ({recording_sid}.json with playback rights only).
Redirect_to, base64 encoded.
True for platform-encrypted recordings: their audio can only be fetched decrypted from media_url with your credentials.
Recording SID, a UUID.
What started the recording: RecordVerb, DialVerb, OutboundAPI, Conference, StartCallRecordingAPI, StartConferenceRecordingAPI or PolicyAlways.
When the recording started, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
In-progress, completed, absent (refused by policy, see error_code), processing (stored file not yet reported) or deleted.
Relative URI of this recording.
Example
{ "account_sid": "AC000000000000000000", "api_version": "v1", "call_sid": "3f0c2a9e-6a51-4d55-9a57-0d2f6e0f8a11", "channels": "2", "date_created": "Thu, 26 Nov 2026 10:15:30 +0000", "date_updated": "Thu, 26 Nov 2026 10:15:30 +0000", "duration": "42", "encryption_details": { "format": "SPE1", "public_key_sid": "CR0123456789abcdef0123456789abcdef", "segment_size": 65536, "type": "rsa-aes" }, "media_url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00.mp3", "price_unit": "USD", "requires_auth": false, "sid": "9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00", "source": "DialVerb", "start_time": "Thu, 26 Nov 2026 10:15:30 +0000", "status": "completed", "uri": "/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00.json"}object
Account the recording belongs to.
Example
AC000000000000000000API version that produced the resource.
Example
v1Call the recording belongs to (the parent call SID).
Example
3f0c2a9e-6a51-4d55-9a57-0d2f6e0f8a11Number of audio channels: 1 (mono) or 2 (dual).
Example
2Conference the recording belongs to; null for call recordings.
When the recording was created, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Example
Thu, 26 Nov 2026 10:15:30 +0000When it was deleted, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”. Only on deleted recordings.
When the recording last changed, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Example
Thu, 26 Nov 2026 10:15:30 +0000Why it was deleted: api, retention or discarded. Only on deleted recordings.
Length of the recording in seconds.
Example
42How the stored audio is encrypted; null when it is not.
object
Rsa-aes: the data key wrapped with RSA-OAEP (SHA-256, MGF1-SHA-256), base64. Never returned for platform-aes.
Ciphertext format: SPE1 (segmented AES-256-GCM).
Example
SPE1Base64 nonce prefix of the SPE1 stream.
Platform-aes: id of the platform key-encryption key.
Rsa-aes: SID of the public key that wrapped the data key.
Example
CR0123456789abcdef0123456789abcdefPlaintext bytes per SPE1 segment.
Example
65536Rsa-aes (customer_key: data key wrapped with your RSA public key) or platform-aes (platform key).
Example
rsa-aesWhy a recording is absent: 64001 blocked by policy never, 64004 policy unavailable, 64005 voicemail blocked; null otherwise.
Where to fetch the audio: this API’s Recordings/{sid}.mp3 or .wav, or for older unencrypted recordings the URL the media server reported.
Example
https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00.mp3“success” when a playback link is included ({recording_sid}.json only).
Price of the recording; always null (recordings are not charged separately).
Currency of price.
Example
USD15 minute presigned URL of the stored object ({recording_sid}.json with playback rights only).
Redirect_to, base64 encoded.
True for platform-encrypted recordings: their audio can only be fetched decrypted from media_url with your credentials.
Example
falseRecording SID, a UUID.
Example
9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00What started the recording: RecordVerb, DialVerb, OutboundAPI, Conference, StartCallRecordingAPI, StartConferenceRecordingAPI or PolicyAlways.
Example
DialVerbWhen the recording started, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Example
Thu, 26 Nov 2026 10:15:30 +0000In-progress, completed, absent (refused by policy, see error_code), processing (stored file not yet reported) or deleted.
Example
completedRelative URI of this recording.
Example
/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00.jsonobject
Account the recording belongs to.
Example
AC000000000000000000API version that produced the resource.
Example
v1Call the recording belongs to (the parent call SID).
Example
3f0c2a9e-6a51-4d55-9a57-0d2f6e0f8a11Number of audio channels: 1 (mono) or 2 (dual).
Example
2Conference the recording belongs to; null for call recordings.
When the recording was created, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Example
Thu, 26 Nov 2026 10:15:30 +0000When it was deleted, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”. Only on deleted recordings.
When the recording last changed, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Example
Thu, 26 Nov 2026 10:15:30 +0000Why it was deleted: api, retention or discarded. Only on deleted recordings.
Length of the recording in seconds.
Example
42How the stored audio is encrypted; null when it is not.
object
Rsa-aes: the data key wrapped with RSA-OAEP (SHA-256, MGF1-SHA-256), base64. Never returned for platform-aes.
Ciphertext format: SPE1 (segmented AES-256-GCM).
Example
SPE1Base64 nonce prefix of the SPE1 stream.
Platform-aes: id of the platform key-encryption key.
Rsa-aes: SID of the public key that wrapped the data key.
Example
CR0123456789abcdef0123456789abcdefPlaintext bytes per SPE1 segment.
Example
65536Rsa-aes (customer_key: data key wrapped with your RSA public key) or platform-aes (platform key).
Example
rsa-aesWhy a recording is absent: 64001 blocked by policy never, 64004 policy unavailable, 64005 voicemail blocked; null otherwise.
Where to fetch the audio: this API’s Recordings/{sid}.mp3 or .wav, or for older unencrypted recordings the URL the media server reported.
Example
https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00.mp3“success” when a playback link is included ({recording_sid}.json only).
Price of the recording; always null (recordings are not charged separately).
Currency of price.
Example
USD15 minute presigned URL of the stored object ({recording_sid}.json with playback rights only).
Redirect_to, base64 encoded.
True for platform-encrypted recordings: their audio can only be fetched decrypted from media_url with your credentials.
Example
falseRecording SID, a UUID.
Example
9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00What started the recording: RecordVerb, DialVerb, OutboundAPI, Conference, StartCallRecordingAPI, StartConferenceRecordingAPI or PolicyAlways.
Example
DialVerbWhen the recording started, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”.
Example
Thu, 26 Nov 2026 10:15:30 +0000In-progress, completed, absent (refused by policy, see error_code), processing (stored file not yet reported) or deleted.
Example
completedRelative URI of this recording.
Example
/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00.jsonRedirect to a 15 minute presigned URL of the audio (.mp3 / .wav)
Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Example generated
exampleLogin not of this account, or role not in access.playback_roles for media (code 20403)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Example
20404Human readable explanation.
Example
the requested resource was not foundLink to more information; currently always empty.
Example
HTTP status code of the response.
Example
404object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Example
20404Human readable explanation.
Example
the requested resource was not foundLink to more information; currently always empty.
Example
HTTP status code of the response.
Example
404Recording, or its media, not found (code 20404)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Example
20404Human readable explanation.
Example
the requested resource was not foundLink to more information; currently always empty.
Example
HTTP status code of the response.
Example
404object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Example
20404Human readable explanation.
Example
the requested resource was not foundLink to more information; currently always empty.
Example
HTTP status code of the response.
Example
404Storage, decryption or account lookup unavailable (code 20503)
object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Human readable explanation.
Link to more information; currently always empty.
HTTP status code of the response.
Example
{ "code": 20404, "message": "the requested resource was not found", "more_info": "", "status": 404}object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Example
20404Human readable explanation.
Example
the requested resource was not foundLink to more information; currently always empty.
Example
HTTP status code of the response.
Example
404object
Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.
Example
20404Human readable explanation.
Example
the requested resource was not foundLink to more information; currently always empty.
Example
HTTP status code of the response.
Example
404