Fallback to SMS

Use this API to send an RCS text message with SMS 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 sms.
smsobjectSMS fallback message details.
sms.fallback_textstringText sent through SMS if RCS is unavailable.

If the primary RCS channel is unavailable, the message can fall back to SMS using the fallback_channel and sms.fallback_text fields.

Request body

{
  "type": "text",
  "phone_no": "{phone}",
  "bot_name": "XXXXXX",
  "text": "Hello",
  "extra": "mumbai",
  "fallback_channel": "sms",
  "sms": {
    "fallback_text": "YourtestOTPis{#var#}-29Three"
  }
}

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?