Fetch recording settings
const url = 'https://api.siprtc.io/v1/Accounts/AC000000000000000000/RecordingSettings/Default';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/RecordingSettings/Default \ --header 'Authorization: Basic <credentials>'Returns the account’s recording and transcript privacy policy: the voice recording mode the platform enforces at every recording start, chat storage and transcript archiving, encryption of stored recordings and transcripts, retention windows in days, and which roles may play recordings or read transcripts. An account that never saved settings gets the defaults (voice.mode app_controlled, dual channels, voicemail allowed, chat stored, no encryption, everything kept, playback for tenant, admin, supervisor and agent) with date_created and date_updated null. Any user of the account may read it; a sub-account reads its parent account’s settings.
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
AC000000000000000000Responses
Section titled “ Responses ”OK
object
Who may play recordings and read transcripts.
object
Roles that may play recordings and read transcripts: tenant, admin, supervisor, agent, member, qa_agent.
Account the settings apply to (a sub-account reads its parent’s).
Chat storage and transcript archiving.
object
Hours of inactivity after which a conversation is archived or redacted, 1 to 720.
Whether idle conversations are archived as Transcripts.
Chat message bodies: store, or never_store (blanked once the conversation is idle).
When the settings were first saved, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”; null for defaults never saved.
When the settings were last saved, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”; null for defaults never saved.
Whether new recordings and transcripts are encrypted.
Public key SID used for customer_key encryption; null otherwise.
None, platform or customer_key.
Name of the settings.
How long content is kept, in days.
object
Days chat message bodies are kept; 0 keeps them forever.
Days call recordings are kept; 0 keeps them forever.
Days archived transcripts are kept; 0 keeps them forever.
Days voicemail (
Absolute URL of the settings.
Call recording policy, enforced at every recording start.
object
Channels of policy-started recordings: dual or mono.
When calls are recorded: app_controlled, always, on_demand or never.
Whether
Example
{ "account_sid": "AC000000000000000000", "chat": { "archive_after_idle_hours": 24, "archive_transcripts": false, "storage": "store" }, "encryption_enabled": false, "encryption_type": "none", "friendly_name": "Default", "retention": { "chat_messages_days": 0, "recordings_days": 0, "transcripts_days": 0, "voicemail_days": 0 }, "url": "https://api.siprtc.io/v1/Accounts/AC000000000000000000/RecordingSettings/Default", "voice": { "channels": "dual", "mode": "app_controlled", "voicemail": "allowed" }}Authentication failed: missing or invalid credentials (JSON string from the API gateway)
Example generated
exampleThe 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}Settings store 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}