Skip to content

Download a recording as WAV

GET
/v1/Accounts/{auth_id}/Recordings/{recording_sid}.wav
curl --request GET \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00.wav \
--header 'Authorization: Basic <credentials>'

Returns the recording’s audio when it is stored as WAV. Same rules as the .mp3 form: a role in access.playback_roles is required, unencrypted and customer_key recordings redirect (302) to a 15 minute presigned URL, platform-encrypted ones are streamed decrypted, and every fetch is audited. A recording stored as MP3 answers 404.

auth_id
required
string

Account Auth ID

Example

AC000000000000000000
recording_sid
required
string

Recording SID (UUID)

Example

9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00

Decrypted audio (platform-encrypted recordings)

Media type audio/wav
string format: binary

Redirect to a 15 minute presigned URL of the stored object

Authentication failed: missing or invalid credentials (JSON string from the API gateway)

Media type audio/wav
string

Role not in access.playback_roles, or login not of this account (code 20403)

Media type audio/wav
object
code

Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.

integer

Example

20404
message

Human readable explanation.

string

Example

the requested resource was not found
more_info

Link to more information; currently always empty.

string

Example

status

HTTP status code of the response.

integer

Example

404

Recording deleted, stored as MP3, or media missing (code 20404)

Media type audio/wav
object
code

Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.

integer

Example

20404
message

Human readable explanation.

string

Example

the requested resource was not found
more_info

Link to more information; currently always empty.

string

Example

status

HTTP status code of the response.

integer

Example

404

Storage, decryption or settings unavailable (code 20503)

Media type audio/wav
object
code

Error code: 20001 invalid parameter, 20403 forbidden, 20404 not found, 20409 conflict, 20503 unavailable, 64030 under legal hold, 64031 active encryption key.

integer

Example

20404
message

Human readable explanation.

string

Example

the requested resource was not found
more_info

Link to more information; currently always empty.

string

Example

status

HTTP status code of the response.

integer

Example

404