Send SMS

VerifiedPOST /v1/messagesPublished 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": "/v1/messages",
"method": "POST",
"body": {
"agent_id": "",
"to_number": "",
"body": ""
}
}'
{
"success": true,
"data": {
"id": "example",
"status": "example",
"channel": "example",
"to_number": "example",
"media_urls": [],
"from_number": "example",
"reply_to_message_id": null,
"reply_parent_unresolved": null
}
}
Example values, built from the documented fields.

$0.0300per call

About this endpoint

Send an SMS from an agent's phone number. First message compliance: Your initial SMS to any new contact must include (1) your brand name, (2) opt-in confirmation, and (3) opt-out instructions (e.g., "Reply STOP to unsubscribe"). Non-compliant first messages may be silently filtered by carriers.

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. List MessagesGET/v1/numbers/{numberId}/messagesFree
  9. Get AgentGET/v1/agents/{agentId}Free
  10. Release NumberDELETE/v1/numbers/{numberId}Free
  11. Get Agent WebhookGET/v1/agents/{agentId}/webhookFree
  12. Attach Number to AgentPOST/v1/agents/{agentId}/numbersFree
All 20 AgentPhone endpoints