Fallback to WhatsApp

Use this API to send an RCS text message with WhatsApp fallback when RCS delivery is unavailable.

Endpoint details

FieldValue
Endpoint URLhttps://apis.rmlconnect.net/rcs/v1/message
MethodPOST
Content-Typeapplication/json
Authentication RequiredYes

Authentication

Pass a valid access token in the Authorization header.

Request headers

HeaderRequiredDescription
AuthorizationYesValid access token for authentication.
Content-TypeYesMust be application/json.

Request body parameters

FieldTypeDescription
typestringMessage type. Use text.
phone_nostringRecipient phone number.
bot_namestringRCS bot name.
textstringText message sent through RCS.
extrastringAdditional custom value.
fallback_channelstringFallback channel. Use whatsapp.
whatsappobjectWhatsApp fallback message details.
whatsapp.textstringText sent through WhatsApp if RCS is unavailable.

If the primary RCS channel is unavailable, the message can fall back to WhatsApp using the fallback_channel and whatsapp.text fields.

Request body

{
  "type": "text",
  "phone_no": "{phone}",
  "bot_name": "XXXXXXXX",
  "text": "Hello",
  "extra": "mumbai",
  "fallback_channel": "whatsapp",
  "whatsapp": {
    "text": "hello"
  }
}

Response

{
  "message": "Message request has been created",
  "id": "9035789a-2a6f-11f0-874a-0a58a9feac021"
}

Error responses

No error response example is provided for this API.


Did this page help you?