Skip to main content

Single SMS sends

Quick guide​

One message per call

SMS Universal sends one SMS to one recipient per call. To send the same message to many recipients, use a campaign.

  1. Send with POST /message-server/sms/send: destination in international format (+39...), sender and body. Add placeholders to fill fields such as {name} in the text, and scheduledDate to send later. With simulation: true the request is validated, but nothing is sent.
  2. Read the answer: 202, with results.sms.accepted. When it is false, results.sms.reasons says why, for example a sender that is not enabled on your account.
  3. Check the delivery by the messageId of the answer: GET /messages/status/{customerMessageId} with channel=SMS returns the status of one SMS, GET /messages/status the status of several. A webhook sends you the statuses without polling.
  4. Read the history with GET /messages/history and channel=SMS, one date range at a time. POST /messages/history/export puts 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