Fallback to SMS
Use this API to send an RCS text message with SMS fallback when RCS delivery is unavailable.
Endpoint details
| Field | Value |
|---|---|
| Endpoint URL | https://apis.rmlconnect.net/rcs/v1/message |
| Method | POST |
| Content-Type | application/json |
| Authentication Required | Yes |
Authentication
Pass a valid access token in the Authorization header.
Request headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Valid access token for authentication. |
| Content-Type | Yes | Must be application/json. |
Request body parameters
| Field | Type | Description |
|---|---|---|
| type | string | Message type. Use text. |
| phone_no | string | Recipient phone number. |
| bot_name | string | RCS bot name. |
| text | string | Text message sent through RCS. |
| extra | string | Additional custom value. |
| fallback_channel | string | Fallback channel. Use sms. |
| sms | object | SMS fallback message details. |
| sms.fallback_text | string | Text sent through SMS if RCS is unavailable. |
If the primary RCS channel is unavailable, the message can fall back to SMS using the
fallback_channelandsms.fallback_textfields.
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.
Updated 11 days ago
Did this page help you?