Send SMS Universal
POST/message-server/sms/send
Sends an SMS message to the specified recipient.
- Placeholders: insert
{name}in the body and fill theplaceholdersmap. - Concatenation: long messages are split into parts automatically (multipart SMS).
- UDH: custom User Data Header data for binary SMS.
- Scheduling: set
scheduledDateto send later. - Dry run: set
simulation: trueto validate the request without sending.
A
202does not mean the message was accepted. A request that passes validation is answered202also when the message is rejected: checkresults.sms.acceptedand, if it isfalse,results.sms.reasons.
Request
Responses
- 202
- 400
- 401
- 403
- 500
- 511
Request accepted. Check results.sms.accepted to see whether the message was accepted.
accepted: truemeans the message was accepted for sending, not that it was delivered. Delivery confirmation arrives via webhook.reasonsis present only when the message is rejected.
Invalid request. Fields that fail validation are listed in data, an object that maps the path of each invalid field (such as sendSms.request.destination) to its messages (a too long campaignId is reported as sendSms.request.groupId); a body that cannot be read, for example a scheduledDate in another format, gives data: "Invalid request body".
Missing or invalid credentials. The body is empty.
The platform cannot find your account: the message is not stored. Contact support
Unexpected error while handling the message
The calling IP address is outside the IP ranges configured for your account