Passer au contenu principal
POST
/
v1
/
api
/
sms
Send SMS
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",
"to_number": "+0987654321",
"type": "OUTBOUND",
"content": "Hello, this is a test message",
"start_date": "2024-01-15T10:30:00"
}
}

Autorisations

Authorization
string
header
requis

Scope needed: SMS_SEND

Corps

application/json

Request body for sending an SMS message

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