Docs Rizler

V2 Call Handling

V2 Update Pre Conversation Media Settings

PATCHhttps://app.rizzdial.com/api/ai/agent/v2/manage/call-handling/pre-conversation-media/{agent_id}
V2 Update Pre Conversation Media Settings
curl --request PATCH \
  --url https://app.rizzdial.com/api/ai/agent/v2/manage/call-handling/pre-conversation-media/agent_123 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "isEnabled": true,
  "mediaFilename": "hold.mp3",
  "enabledForOutbound": true
}'
{
  "data": {
    "agent_id": "agent_123"
  },
  "message": "Saved",
  "success": true
}

V2 Update Pre Conversation Media Settings#

Updates the audio played before a V2 conversation. Send only the fields you want to change. An unknown agent id returns 404.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

agent_idstringpathrequired

Public agent id from List Agents

isEnabledbooleanbody

Play media before the conversation starts.

mediaFilenamestringbody

File name of the media. May be null.

enabledForInboundbooleanbody

Play it on inbound calls.

enabledForOutboundbooleanbody

Play it on outbound calls.

enabledForWebCallbooleanbody

Play it on web calls.

curl --request PATCH \
  --url https://app.rizzdial.com/api/ai/agent/v2/manage/call-handling/pre-conversation-media/agent_123 \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --header 'Content-Type: application/json' \
  --data '{"isEnabled":true,"mediaFilename":"hold.mp3","enabledForOutbound":true}'
successboolean

true when the settings are saved

messagestring

Pre-conversation media settings updated successfully