Delete a recording
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00';const options = {method: 'DELETE', 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 DELETE \ --url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Recordings/9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00 \ --header 'Authorization: Basic <credentials>'Deletes a recording’s audio from storage. The resource stays as a tombstone (status deleted, deletion_reason api, date_deleted) that lists show with IncludeSoftDeleted=true; deleting it again succeeds. Refused with 409 (code 64030) while an active legal hold covers the recording; the refusal is audited as recording.delete_blocked, a deletion as recording.deleted. Only the account owner (Basic auth with the account’s Auth ID and Auth Secret) or a platform admin may call it; other logins get 403.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Account Auth ID (AC followed by the account id) the request acts on
Example
AC000000000000000000Recording SID (a UUID); a .json suffix is ignored
Example
9b1d7e0c-2f4a-4c1e-8f3b-5a6d7c8e9f00Responses
Section titled “ Responses ”Deleted
Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Example generated
exampleOnly the account owner or an admin may do this, or the login does not belong to this account (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}No such recording in this account (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}A legal hold covers the recording (code 64030)
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}Storage 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}