Skip to main content
PUT
/
api
/
phone-numbers
/
{id}
/
assign
Assign Phone Number
curl --request PUT \
  --url https://api.example.com/api/phone-numbers/{id}/assign

Request

curl -X PUT "https://app.orova.ai/api/phone-numbers/PHONE_ID/assign" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "AGENT_ID",
    "assignmentType": "inbound"
  }'

Path parameters

ParameterTypeDescription
idstringPhone number ID

Body parameters

FieldTypeRequiredDescription
agentIdstringYesAgent to assign to
assignmentTypestringYesinbound or outbound

Response

Returns the updated phone number object.

Assignment types

  • inbound — Calls to this number are answered by the agent
  • outbound — This number is used as caller ID for outbound calls from the agent