Attach Number to Agent

VerifiedPOST /v1/agents/{agentId}/numbersPublished by AgentPhone
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "agentphone",
"path": "",
"method": "POST",
"body": {
"numberId": ""
}
}'
{
"success": true,
"data": {
"number": { … },
"agentId": "example"
}
}
Example values, built from the documented fields.

Free

About this endpoint

Attach a phone number to an agent.

Body parameters

Response types

More from AgentPhone

  1. Set Agent WebhookPOST/v1/agents/{agentId}/webhookFree
  2. Detach Number from AgentDELETE/v1/agents/{agentId}/numbers/{numberId}Free
  3. Get ConversationGET/v1/conversations/{conversationId}Free
  4. List VoicesGET/v1/agents/voicesFree
  5. Update AgentPATCH/v1/agents/{agentId}Free
  6. List Agent CallsGET/v1/agents/{agentId}/callsFree
  7. Make CallPOST/v1/calls$0.1000 per call
  8. Send SMSPOST/v1/messages$0.0300 per call
  9. List MessagesGET/v1/numbers/{numberId}/messagesFree
  10. Get AgentGET/v1/agents/{agentId}Free
  11. Release NumberDELETE/v1/numbers/{numberId}Free
  12. Get Agent WebhookGET/v1/agents/{agentId}/webhookFree
All 20 AgentPhone endpoints