Phone numbers
Assign an agent to a number
PUT
Assigns an agent to answer inbound calls to the number. The agent must belong to your account and answers only while its status is active.
Requires the agents:write scope.
apiKeyheader
X-API-Key<token>Your API key, from Settings → API access in the dashboard.
number_id*stringThe number's id, from GET /phone-numbers.
Format
uuidapplication/json- body
agent_id*stringFormat
uuidAssigned.
application/jsoncurl -X PUT "https://example.com/phone-numbers/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978" }'{ "message": "Agent assigned", "number": "+912268096161", "agent_id": "8b8e3307-2c1a-4f6e-9a51-0d7c2b9e4f10"}