Skip to main content

Single RCS sends

Quick guide​

One message per call

This API sends one RCS message to one recipient per call. To send to many recipients, use a campaign.

RCS sends rich messages, with images, cards, carousels and buttons, to the phone's own messaging app. Not every phone can receive them, so give each message a fallback.

  1. Send with POST /message-server/rcs/send: destination, the agentId of your RCS agent, and either the content in body (TEXT, CARD or CAROUSEL) or the templateId of an RCS template. With simulation: true the request is validated, but nothing is sent.
  2. Add the fallback inside the content, in body.body: fallbackSms and, if your account can send on several channels, fallbackWhatsApp. With templateId, the template's SMS fallback applies.
  3. Check the delivery by the messageId of the answer: GET /rcs/messages/{messageId} returns the status of the message, and its readDate tells when it was read. GET /messages/status/{customerMessageId} with channel=RCS returns the same data, GET /messages/status the status of several messages. The webhook sends you the statuses without polling, tells you when a message is read, and brings the recipient's replies.
  4. Read the history with GET /messages/history and channel=RCS, one date range at a time. POST /messages/history/export puts every channel in a CSV file: see Exports.

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 RCS messages sent one at a time, not campaign messages, which you follow from Campaigns. The last three are the same for every channel: their pages here are written for RCS, and each links to the same endpoint for SMS and WhatsApp.

Use cases: UC-019: Analyze Message History · UC-018: Export Delivery Reports