Allo

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).

POST/v1/api/sms

Autorisation

Authorizationstring · headerrequis

Scope needed: SMS_SEND

Corps

fromstringrequis

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

tostringrequis

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

messagestringrequis

Message content

Réponses

200SMS sent successfully
dataobject

Sent SMS message details

6 champs
from_numberstring | null

Phone number that sent the message. Null when sender_id is used instead.

sender_idstring | null

Sender 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_numberstring

Phone number that received the message

typeenum<string>

Direction of the message (always OUTBOUND for sent messages)

OUTBOUND

contentstring

Content of the SMS message

start_datestring<date-time>

When the message was sent

400Bad request
codestring

Error code identifying the type of error

detailsobject[]

Additional error details, or null if not applicable

2 champs
messagestring
fieldstring
401
403
429