
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "agentphone",
"path": "/v1/numbers",
"method": "POST",
"body": {
"country": ""
}
}'
{
"success": true,
"data": {
"id": "{id}",
"type": "{type}",
"status": "{status}",
"agentId": null,
"country": "{country}",
"createdAt": "{createdAt}",
"phoneNumber": "{phoneNumber}"
}
}
Example values, built from the documented fields.
$3.50per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
Buy a US or CA phone number. $3/month per number.
Body parameters
countryrequiredstringUS or CA.areaCodestring3-digit area code.agentIdstringAgent ID to attach immediately.Response types
idstringtypestringstatusstringcountrystringcreatedAtstringphoneNumberstringMore from AgentPhone
- Set Agent WebhookPOST/v1/agents/{agentId}/webhookFree
- Detach Number from AgentDELETE/v1/agents/{agentId}/numbers/{numberId}Free
- Get ConversationGET/v1/conversations/{conversationId}Free
- List VoicesGET/v1/agents/voicesFree
- Update AgentPATCH/v1/agents/{agentId}Free
- List Agent CallsGET/v1/agents/{agentId}/callsFree
- Make CallPOST/v1/calls$0.10 per callFixed
- Send SMSPOST/v1/messages$0.03 per callFixed
- List MessagesGET/v1/numbers/{numberId}/messagesFree
- Get AgentGET/v1/agents/{agentId}Free
- Release NumberDELETE/v1/numbers/{numberId}Free
- Get Agent WebhookGET/v1/agents/{agentId}/webhookFree