Passer au contenu principal
POST
/
v1
/
api
/
sms
Send SMS (US)
curl --request POST \
  --url https://api.withallo.com/v1/api/sms \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": "+1234567890",
  "to": "+0987654321",
  "message": "Hello, this is a test message"
}
'
{ "data": { "from_number": "+1234567890", "sender_id": null, "to_number": "+0987654321", "type": "OUTBOUND", "content": "Hello, this is a test message", "start_date": "2024-01-15T10:30:00" } }

Documentation Index

Fetch the complete documentation index at: https://help.withallo.com/llms.txt

Use this file to discover all available pages before exploring further.

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

Autorisations

Authorization
string
header
requis

Scope needed: SMS_SEND

Corps

application/json

Request body for sending an SMS message (US)

from
string
requis

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

Exemple:

"+1234567890"

to
string
requis

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

Exemple:

"+0987654321"

message
string
requis

Message content

Required string length: 1 - 1000
Exemple:

"Hello, this is a test message"

Réponse

SMS sent successfully

Standard response wrapper for sent SMS

data
object

Sent SMS message details