Envoyer un SMS
Cet endpoint permet d'envoyer des SMS depuis des numeros de telephone Allo americains. Pour envoyer des SMS en France, consultez Envoyer un SMS (France).
Autorisation
Authorizationstring · headerrequisScope needed: SMS_SEND
Corps
fromstringrequisYour Allo phone number (must be owned by your account)
tostringrequisRecipient phone number (E.164 format, same country as 'from')
messagestringrequisMessage content
Réponses
200SMS sent successfully
dataobjectSent SMS message details
6 champs
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 champs
messagestringfieldstring