v1

latestOpenAPI 3.0.32026-07-264955102.7 KB
SMS

Send SMS (US)

Send an SMS message to a US phone number using one of your Allo phone numbers. The recipient must be in the same country as your Allo number.

post/v1/api/sms

Request body

fromstring required

Your Allo phone number (must be owned by your account)

tostring required

Recipient phone number (E.164 format, same country as 'from')

messagestring required

Message content

Example request

{
  "from": "+1234567890",
  "to": "+0987654321",
  "message": "Hello, this is a test message"
}

Response

SMS sent successfully

Example response

{
  "data": {
    "from_number": "+1234567890",
    "sender_id": "MyCompany",
    "to_number": "+0987654321",
    "content": "Hello, this is a test message",
    "start_date": "2024-01-15T10:30:00"
  }
}