Send RCS message
POST/message-server/rcs/send
Sends an RCS message. The content is one of the following, mutually exclusive: one of the two is required.
- Inline body (
body): type TEXT, CARD or CAROUSEL. - Template (
templateId).
If the message cannot be delivered via RCS, the system can fall back to WhatsApp and/or SMS. The fallbacks belong to the RCS content:
- With an inline body: set
fallbackSms(RCS → SMS) and optionallyfallbackWhatsApp(RCS → WhatsApp → SMS) insidebody.body. - With
templateId: the SMS fallback saved in the template applies. A template does not keep a WhatsApp fallback. fallbackWhatsAppneedsfallbackSms: if the first is present, the second is mandatory.- Mixed-channel accounts only: the WhatsApp fallback applies only if your account supports mixed-channel sending; otherwise it is ignored.
maxSmsPartsis ignored, if sent: the fallback SMS is split into as many parts as its text needs.
Request
Responses
- 202
- 400
- 401
- 403
- 500
- 511
Request accepted. Check results.rcs.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.- With fallbacks,
resultsalso carrieswhatsappand/orsms: those messages are prepared now and sent only if the previous channel fails. In that caseresults.rcs.acceptedis alwaystrue, and only the SMS can be rejected at this stage. - Omitted values: the results of the channels not involved, and
reasonswhen the message is accepted.
Invalid request. Fields that fail validation are listed in data, an object that maps the path of each invalid field (such as sendRcsMessage.request.destination) to its messages; a body that cannot be read gives data: "Invalid request body". An agent, template or WhatsApp number that your account cannot use gives message and code instead.
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