cURL
curl --request PUT \ --url https://api.example.com/api/phone-numbers/{id}/assign
Assign a phone number to an agent
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" }'
id
agentId
assignmentType
inbound
outbound