Send SMS
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.
Authorization
Authorizationstring · headerrequiredScope needed: SMS_SEND
Body
fromstringrequiredYour Allo phone number (must be owned by your account)
tostringrequiredRecipient phone number (E.164 format, same country as 'from')
messagestringrequiredMessage content
Responses
200SMS sent successfully
dataobjectSent SMS message details
6 fields
from_numberstring | nullPhone number that sent the message. Null when sender_id is used instead.
sender_idstring | nullSender ID used for the message (alphanumeric identifier). Only populated when sending with a verified Sender ID (e.g., for France SMS). Null when from_number is used.
to_numberstringPhone number that received the message
typeenum<string>Direction of the message (always OUTBOUND for sent messages)
OUTBOUND
contentstringContent of the SMS message
start_datestring<date-time>When the message was sent
400Bad request
codestringError code identifying the type of error
detailsobject[]Additional error details, or null if not applicable
2 fields
messagestringfieldstring