
Send SMS
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
- 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.1000 per call
- 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
- Attach Number to AgentPOST/v1/agents/{agentId}/numbersFree