V1 Update Ivr Detection#
Saves voicemail detection for a V1 agent. prompt and static_text need message text. An unknown agent id returns 404.
Authorizationstringheaderrequired
Bearer token in the format: Bearer {access_token}
agent_idstringpathrequired
Public agent id from List Agents
enabledbooleanbody
Turn voicemail detection on or off. Send only when changing it.
isEnabledbooleanbody
Same as enabled.
enable_voicemail_detectionbooleanbody
Same as enabled.
action_typestringbody
One of hangup, prompt, static_text. prompt and static_text require message text.
voicemail_action_typestringbody
Same as action_type. May be null.
messagestringbody
Spoken or read when the action is prompt or static_text. May be null.
textstringbody
Same as message. May be null.
voicemail_message_textstringbody
Same as message. May be null.
voicemail_detection_timeout_msintegerbody
Detection window in milliseconds. Min 5000, max 120000.
curl --request PATCH \
--url https://app.rizzdial.com/api/ai/agent/v1/manage/call-handling/ivr-detection/agent_123 \
--header 'Authorization: Bearer {{bearer_token}}' \
--header 'Content-Type: application/json' \
--data '{"enable_voicemail_detection":true,"action_type":"hangup"}'successboolean
true when the settings are saved
messagestring
Short result message
dataobject
The saved settings