V1 Update Ivr Behavior#
Saves the voicemail action for a V1 agent. Uses the same fields as IVR detection. prompt and static_text need message text.
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-behavior/agent_123 \
--header 'Authorization: Bearer {{bearer_token}}' \
--header 'Content-Type: application/json' \
--data '{"action_type":"static_text","voicemail_message_text":"Please call us back."}'successboolean
true when the settings are saved
messagestring
Short result message
dataobject
The saved settings