Skip to main content
POST
/
phone-numbers
/
assign
Assign phone number to agent
curl --request POST \
  --url https://api.getarbol.com/v1/phone-numbers/assign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumberId": "<string>",
  "agentId": "<string>"
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": {}
  },
  "requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Use your API key from the Arbol dashboard. Go to Settings > API Keys to generate one.

Body

application/json
phoneNumberId
string
required
agentId
string | null

Response

Phone number assigned