cURL
curl --request POST \ --url https://api.openmic.ai/v1/phone-numbers/unlink-agent \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "phone_number_id": "ybhb8wzi487w02m2bc7dh0ev", "direction": "inbound" } '
{ "phone_number_id": "ybhb8wzi487w02m2bc7dh0ev", "phone_number": "+15551112222", "inbound_agent_id": null, "outbound_agent_id": "bvrg8wzi487w02m2bc7dh0ev", "message": "Bot unlinked successfully for inbound calls." }
Unlink a bot (agent) from a phone number.
Bearer token authentication using API key. Find it at: https://chat.openmic.ai/api-key
https://chat.openmic.ai/api-key
Bot unlinking details
The unique identifier of the phone number
Direction to unlink (inbound, outbound, or both)
inbound
outbound
both
Bot unlinked from phone number successfully
Unique identifier of the phone number
Phone number in E.164 format
Success message
Bot UID for inbound calls
Bot UID for outbound calls
Was this page helpful?