cURL
curl --request POST \ --url https://api.openmic.ai/h/v2/phone-numbers/unlink-agent \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "phone_number_id": "pn_abc123", "direction": "inbound" } '
{ "id": "<string>", "phone_number": "<string>", "name": "<string>", "inbound_agent_uid": "<string>", "outbound_agent_uid": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Removes the agent association from a phone number for the given direction.
API key obtained from the OpenMic dashboard.
inbound
outbound
both
Updated phone number.
Was this page helpful?