ResoneraDocs
Phone numbers

Assign an agent to a number

PUT
/phone-numbers/{number_id}/agent

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.

Authorization

apiKey
headerX-API-Key<token>

Your API key, from Settings → API access in the dashboard.

Path Parameters

number_id*string

The number's id, from GET /phone-numbers.

Formatuuid

Request Body

application/json
  1. body
agent_id*string
Formatuuid

Response Body

Assigned.

application/json
curl -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"}