Skip to content

Update recording settings

POST
/v1/Accounts/{auth_id}/RecordingSettings/Default
curl --request POST \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/RecordingSettings/Default \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data FriendlyName=example \
--data Voice.Mode=app_controlled \
--data Voice.Channels=dual \
--data Voice.Voicemail=allowed \
--data Chat.Storage=store \
--data Chat.ArchiveTranscripts=true \
--data Chat.ArchiveAfterIdleHours=1 \
--data EncryptionEnabled=true \
--data EncryptionType=none \
--data EncryptionKeySid=example \
--data Retention.RecordingsDays=1 \
--data Retention.VoicemailDays=1 \
--data Retention.TranscriptsDays=1 \
--data Retention.ChatMessagesDays=1 \
--data Access.PlaybackRoles=example

Changes the account’s recording policy. Only the parameters you send change; the result must still be a valid policy, and unknown parameters are refused. Send form parameters with the PascalCase dotted names below, or a JSON body with the snake_case shape GET returns (e.g. {“voice”: {“mode”: “never”}}); read-only fields echoed back (account_sid, url, dates) are ignored. EncryptionType wins over EncryptionEnabled; EncryptionEnabled=true alone picks customer_key when EncryptionKeySid is set, else platform; EncryptionEnabled=false alone turns encryption off. customer_key needs EncryptionKeySid naming one of the account’s Credentials/PublicKeys. Encryption changes apply to new recordings only. Saving settings for the first time answers 201, later saves 200; each save is audited as settings.updated. Retention.ConsentsDays is accepted and ignored. 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.

auth_id
required
string

Account Auth ID (AC followed by the account id) the request acts on

Example

AC000000000000000000
Media type application/x-www-form-urlencoded
object
FriendlyName

Name of the settings, 1 to 64 characters. Default \

string
Voice.Mode

When calls are recorded: app_controlled (whatever your application or the API asks), always (every call from answer, plus app requests), on_demand (explicit requests only; the implicit recording of conferences is suppressed), never (no call recording at all)

string
Allowed values: app_controlled always on_demand never
Voice.Channels

Channels of policy-started recordings: dual (one channel per party) or mono

string
Allowed values: dual mono
Voice.Voicemail

Whether (voicemail) may record: allowed or blocked

string
Allowed values: allowed blocked
Chat.Storage

Chat message bodies: store, or never_store (bodies are blanked once the conversation has been idle Chat.ArchiveAfterIdleHours; metadata stays)

string
Allowed values: store never_store
Chat.ArchiveTranscripts

Archive each idle conversation as a Transcript (encrypted like recordings)

boolean
Chat.ArchiveAfterIdleHours

Hours a conversation must be idle before it is archived or redacted, 1 to 720. Default 24

integer
>= 1 <= 720
EncryptionEnabled

Encrypt new recordings and transcripts. Must agree with EncryptionType when both are sent

boolean
EncryptionType

None, platform (envelope encryption with a platform key; the API decrypts for playback) or customer_key (data keys wrapped with your RSA public key; only your private key decrypts)

string
Allowed values: none platform customer_key
EncryptionKeySid

Public key SID (CR followed by 32 hex digits) used for customer_key encryption

string
Retention.RecordingsDays

Days to keep call recordings; 0 keeps them forever, else 1 to 3650

integer
<= 3650
Retention.VoicemailDays

Days to keep voicemail () recordings; 0 keeps them forever, else 1 to 3650

integer
<= 3650
Retention.TranscriptsDays

Days to keep archived transcripts; 0 keeps them forever, else 1 to 3650

integer
<= 3650
Retention.ChatMessagesDays

Days to keep chat message bodies; 0 keeps them forever, else 1 to 3650

integer
<= 3650
Access.PlaybackRoles

Comma-separated roles that may play recordings and read transcripts: tenant, admin, supervisor, agent, member, qa_agent. At least one; replaces the whole list

string

Settings updated

Media type application/json
object
access

Who may play recordings and read transcripts.

object
playback_roles

Roles that may play recordings and read transcripts: tenant, admin, supervisor, agent, member, qa_agent.

Array<string>
account_sid

Account the settings apply to (a sub-account reads its parent’s).

string
chat

Chat storage and transcript archiving.

object
archive_after_idle_hours

Hours of inactivity after which a conversation is archived or redacted, 1 to 720.

integer
archive_transcripts

Whether idle conversations are archived as Transcripts.

boolean
storage

Chat message bodies: store, or never_store (blanked once the conversation is idle).

string
date_created

When the settings were first saved, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”; null for defaults never saved.

string
date_updated

When the settings were last saved, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”; null for defaults never saved.

string
encryption_enabled

Whether new recordings and transcripts are encrypted.

boolean
encryption_key_sid

Public key SID used for customer_key encryption; null otherwise.

string
encryption_type

None, platform or customer_key.

string
friendly_name

Name of the settings.

string
retention

How long content is kept, in days.

object
chat_messages_days

Days chat message bodies are kept; 0 keeps them forever.

integer
recordings_days

Days call recordings are kept; 0 keeps them forever.

integer
transcripts_days

Days archived transcripts are kept; 0 keeps them forever.

integer
voicemail_days

Days voicemail () recordings are kept; 0 keeps them forever.

integer
url

Absolute URL of the settings.

string
voice

Call recording policy, enforced at every recording start.

object
channels

Channels of policy-started recordings: dual or mono.

string
mode

When calls are recorded: app_controlled, always, on_demand or never.

string
voicemail

Whether may record: allowed or blocked.

string

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"
}
}

Settings saved for the first time

Media type application/json
object
access

Who may play recordings and read transcripts.

object
playback_roles

Roles that may play recordings and read transcripts: tenant, admin, supervisor, agent, member, qa_agent.

Array<string>
account_sid

Account the settings apply to (a sub-account reads its parent’s).

string
chat

Chat storage and transcript archiving.

object
archive_after_idle_hours

Hours of inactivity after which a conversation is archived or redacted, 1 to 720.

integer
archive_transcripts

Whether idle conversations are archived as Transcripts.

boolean
storage

Chat message bodies: store, or never_store (blanked once the conversation is idle).

string
date_created

When the settings were first saved, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”; null for defaults never saved.

string
date_updated

When the settings were last saved, RFC 2822 date, e.g. “Thu, 26 Nov 2026 10:15:30 +0000”; null for defaults never saved.

string
encryption_enabled

Whether new recordings and transcripts are encrypted.

boolean
encryption_key_sid

Public key SID used for customer_key encryption; null otherwise.

string
encryption_type

None, platform or customer_key.

string
friendly_name

Name of the settings.

string
retention

How long content is kept, in days.

object
chat_messages_days

Days chat message bodies are kept; 0 keeps them forever.

integer
recordings_days

Days call recordings are kept; 0 keeps them forever.

integer
transcripts_days

Days archived transcripts are kept; 0 keeps them forever.

integer
voicemail_days

Days voicemail () recordings are kept; 0 keeps them forever.

integer
url

Absolute URL of the settings.

string
voice

Call recording policy, enforced at every recording start.

object
channels

Channels of policy-started recordings: dual or mono.

string
mode

When calls are recorded: app_controlled, always, on_demand or never.

string
voicemail

Whether may record: allowed or blocked.

string

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"
}
}

Unknown or invalid parameter, inconsistent encryption flags, or EncryptionKeySid not a key of this account (code 20001)

Media type application/json
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
message

Human readable explanation.

string
more_info

Link to more information; currently always empty.

string
status

HTTP status code of the response.

integer

Example

{
"code": 20404,
"message": "the requested resource was not found",
"more_info": "",
"status": 404
}

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

Media type application/json
string

Example generated

example

Only the account owner or an admin may do this, or the login does not belong to this account (code 20403)

Media type application/json
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
message

Human readable explanation.

string
more_info

Link to more information; currently always empty.

string
status

HTTP status code of the response.

integer

Example

{
"code": 20404,
"message": "the requested resource was not found",
"more_info": "",
"status": 404
}

Storage or account lookup unavailable (code 20503)

Media type application/json
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
message

Human readable explanation.

string
more_info

Link to more information; currently always empty.

string
status

HTTP status code of the response.

integer

Example

{
"code": 20404,
"message": "the requested resource was not found",
"more_info": "",
"status": 404
}