Single SMS sends
API overview
Send SMS Universal
Get the delivery status of an SMS message
Get the delivery status of several SMS messages
List the SMS send history
Quick guide
SMS Universal sends one SMS to one recipient per call. To send the same message to many recipients, use a campaign.
- Send with
POST /message-server/sms/send:destinationin international format (+39...),senderandbody. Addplaceholdersto fill fields such as{name}in the text, andscheduledDateto send later. Withsimulation: truethe request is validated, but nothing is sent. - Read the answer:
202, withresults.sms.accepted. When it isfalse,results.sms.reasonssays why, for example a sender that is not enabled on your account. - Check the delivery by the
messageIdof the answer:GET /messages/status/{customerMessageId}withchannel=SMSreturns the status of one SMS,GET /messages/statusthe status of several. A webhook sends you the statuses without polling. - Read the history with
GET /messages/historyandchannel=SMS, one date range at a time.POST /messages/history/exportputs every channel in a CSV file: see Exports.
A text longer than 160 characters, or 70 when it holds characters outside the GSM-7 alphabet such as emoji, is split into parts, each billed: results.sms.parts gives their number.
After a 500, the message may have been sent anyway: do not send it again blindly (see Retry strategy).
The send is served by the messaging API, under https://api.qlara.ai/api, which accepts the API key in the X-Api-Key header or Basic Auth: see Authentication. The status and history endpoints are those of the Platform API, with the API key only. They cover the SMS sent one at a time, not campaign messages, which you follow from Campaigns. They are the same for every channel: their pages here are written for SMS, and each links to the same endpoint for RCS and WhatsApp.
Use cases: UC-019: Analyze Message History · UC-018: Export Delivery Reports