Docs Rizler

Phone Numbers

Assign Chatbot

POSThttps://app.rizzdial.com/api/phone-numbers/{id}/assign-chatbot
Assign Chatbot
curl --request POST \
  --url https://app.rizzdial.com/api/phone-numbers/12/assign-chatbot \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_id": "agent_123"
}'
{
  "message": "Agent assigned successfully.",
  "success": true
}

Assign Chatbot#

Sets or clears the inbound chatbot agent on this number. The number must be A2P-linked to assign an agent. Send an empty agent_id to clear it.

Authorizationstringheaderrequired

Bearer token in the format: Bearer {access_token}

idstringpathrequired

Numeric id, base64 id, or encrypted id from List Phone Numbers

agent_idstringbody

Agent id from List Agents for Chatbot. Omit or send empty to unassign

curl --request POST \
  --url https://app.rizzdial.com/api/phone-numbers/12/assign-chatbot \
  --header 'Authorization: Bearer {{bearer_token}}' \
  --header 'Content-Type: application/json' \
  --data '{"agent_id":"agent_123"}'
successboolean

true when the agent is assigned

messagestring

Agent assigned successfully. or the error