> ## Documentation Index
> Fetch the complete documentation index at: https://www.vobiz.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Send RCS with Vobiz

> Send RCS business messages with the Vobiz Messaging API - register a sender, add suggestion buttons, rich cards, carousels and templates, fall back to SMS, and check reachability.

RCS (Rich Communication Services) delivers branded messages with media and tappable suggestion buttons to Android handsets that have RCS enabled. You send RCS through the same [Send a message](https://www.vobiz.ai/docs/sms/api/messages/send-message.md) endpoint as SMS, from an RCS sender that has been launched in the recipient's country (or to its approved test devices). See [RCS availability](https://www.vobiz.ai/docs/sms/rcs-senders.md#rcs-availability).

## What you need

**1. An approved RCS sender**

An RCS sender is the branded identity (name, logo, colour, contact details) that recipients see. Create one with [Create an RCS sender](https://www.vobiz.ai/docs/sms/api/senders/create-sender.md), test it on [test devices](https://www.vobiz.ai/docs/sms/rcs-senders.md#test-devices), then [request a launch](https://www.vobiz.ai/docs/sms/rcs-senders.md#launch-per-country) per country. The [RCS senders](https://www.vobiz.ai/docs/sms/rcs-senders.md) page walks through the lifecycle.

**2. Use the sender as the from value**

For `channel: "rcs"`, `from` is usually the sender's `senderName`. A number on your account is also accepted as `from`.

**3. Decide on SMS fallback**

Set `failoverToSms: true` to send `text` as SMS when the RCS platform rejects the message. The SMS goes out from the same `from`. See [Fall back to SMS](#fall-back-to-sms).

## Send an RCS message with buttons

```bash cURL theme={null}
curl -X POST "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "AcmeStore",
    "to": ["+14155550123"],
    "channel": "rcs",
    "text": "Your order #4821 is ready for pickup. What would you like to do?",
    "rcsSuggestions": [
      { "type": "REPLY", "text": "I am on my way", "postbackData": "pickup_now_4821" },
      { "type": "REPLY", "text": "Hold until tomorrow", "postbackData": "pickup_tomorrow_4821" },
      { "type": "OPEN_URL", "text": "View order", "postbackData": "view_4821", "url": "https://example.com/orders/4821" },
      { "type": "DIAL_PHONE", "text": "Call the store", "postbackData": "call_store", "phoneNumber": "+14155550100" },
      { "type": "SHOW_LOCATION", "text": "Store location", "postbackData": "show_store", "latitude": 37.7749, "longitude": -122.4194, "label": "Acme Store, Market St" }
    ],
    "failoverToSms": true,
    "tag": "pickup"
  }'
```

```python Python theme={null}
import requests

resp = requests.post(
    "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/",
    headers={
        "X-Auth-ID": "MA_XXXXXXXX",
        "X-Auth-Token": "YOUR_AUTH_TOKEN",
        "Content-Type": "application/json",
    },
    json={
        "from": "AcmeStore",
        "to": ["+14155550123"],
        "channel": "rcs",
        "text": "Your order #4821 is ready for pickup. What would you like to do?",
        "rcsSuggestions": [
            {"type": "REPLY", "text": "I am on my way", "postbackData": "pickup_now_4821"},
            {"type": "REPLY", "text": "Hold until tomorrow", "postbackData": "pickup_tomorrow_4821"},
            {"type": "OPEN_URL", "text": "View order", "postbackData": "view_4821",
             "url": "https://example.com/orders/4821"},
            {"type": "DIAL_PHONE", "text": "Call the store", "postbackData": "call_store",
             "phoneNumber": "+14155550100"},
            {"type": "SHOW_LOCATION", "text": "Store location", "postbackData": "show_store",
             "latitude": 37.7749, "longitude": -122.4194, "label": "Acme Store, Market St"},
        ],
        "failoverToSms": True,
        "tag": "pickup",
    },
)
resp.raise_for_status()
message = resp.json()
print(message["id"], message["channel"], message["status"])
```

```javascript Node theme={null}
const resp = await fetch("https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/", {
  method: "POST",
  headers: {
    "X-Auth-ID": "MA_XXXXXXXX",
    "X-Auth-Token": "YOUR_AUTH_TOKEN",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    from: "AcmeStore",
    to: ["+14155550123"],
    channel: "rcs",
    text: "Your order #4821 is ready for pickup. What would you like to do?",
    rcsSuggestions: [
      { type: "REPLY", text: "I am on my way", postbackData: "pickup_now_4821" },
      { type: "REPLY", text: "Hold until tomorrow", postbackData: "pickup_tomorrow_4821" },
      { type: "OPEN_URL", text: "View order", postbackData: "view_4821", url: "https://example.com/orders/4821" },
      { type: "DIAL_PHONE", text: "Call the store", postbackData: "call_store", phoneNumber: "+14155550100" },
      { type: "SHOW_LOCATION", text: "Store location", postbackData: "show_store", latitude: 37.7749, longitude: -122.4194, label: "Acme Store, Market St" },
    ],
    failoverToSms: true,
    tag: "pickup",
  }),
});
const message = await resp.json();
console.log(message.id, message.channel, message.status);
```

```json Response - 201 Created theme={null}
{
  "id": "9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
  "accountId": "MA_XXXXXXXX",
  "direction": "out",
  "channel": "rcs",
  "from": "AcmeStore",
  "to": "+14155550123",
  "text": "Your order #4821 is ready for pickup. What would you like to do?",
  "mediaUrls": null,
  "status": "sent",
  "tag": "pickup",
  "conversationId": "3c1d7e52-6f4b-4a8e-b2d9-0e5f1a7c9b34",
  "createdAt": "2026-10-18T09:30:00.123456Z",
  "updatedAt": "2026-10-18T09:30:00.123456Z"
}
```

> [!WARNING]
>
> Every RCS send reaches a real handset and is billed at the RCS rate, or at the SMS rate when it falls back. Run the examples only with your own credentials and numbers you intend to message.

## Request fields for RCS

| Field | Notes |
| - | - |
| `from` | The `senderName` of an RCS sender on your account, or a number on your account. |
| `to` | One or more recipient numbers in E.164 format. Each becomes its own message record. |
| `channel` | `rcs`. |
| `text` | The message body. With `rcsTemplateName` or `rcsContent`, only the SMS fallback text. |
| `mediaUrls` | Sends only the **first** URL, as a file message. The `text` is not shown with it (it remains the SMS fallback text). To show an image with text and buttons, use a card in `rcsContent`. Use a public `https` URL. |
| `rcsSuggestions` | Buttons in display order. See [Suggestion buttons](#suggestion-buttons). |
| `rcsTemplateName`, `rcsTemplateVariables` | Send an approved template of the `from` sender. See [Rich cards, carousels and templates](#rich-cards-carousels-and-templates). |
| `rcsContent` | Send a card or carousel inline. See [Rich cards, carousels and templates](#rich-cards-carousels-and-templates). |
| `failoverToSms` | `true` to send `text` as SMS from the same `from` when the RCS platform rejects the send. Default `false`. |
| `tag`, `idempotencyKey`, `scheduledAt` | Behave exactly as for [SMS](https://www.vobiz.ai/docs/sms/channels/sms.md). `scheduledAt` in the future cannot be combined with `rcsTemplateName` or `rcsContent`. |

## Suggestion buttons

Each entry in `rcsSuggestions` is one button under the message. `text` is the label the recipient sees (up to 25 characters). `postbackData` (up to 2048 characters, defaults to `text`) is sent to the RCS platform with the button. The remaining fields depend on `type`:

| `type` | What happens on tap | Extra fields |
| - | - | - |
| `REPLY` | Sends `text` back to you as a reply. | none |
| `OPEN_URL` | Opens `url` in the handset browser. | `url` |
| `DIAL_PHONE` | Starts a call to `phoneNumber`. | `phoneNumber` |
| `SHOW_LOCATION` | Opens the map at the given point. | `latitude`, `longitude`, `label` |
| `REQUEST_LOCATION` | Asks the recipient to share their current location. | none |
| `CREATE_CALENDAR_EVENT` | Offers to add an event to the recipient's calendar. | `title`, `startTime`, `endTime` (required); `description` |

On a plain text message the `rcsSuggestions` array is passed to the RCS platform as sent. With `rcsTemplateName` or `rcsContent` it is validated first: at most 11 suggestions, `url` must be `http(s)`, `phoneNumber` must be E.164, and `latitude`/`longitude` must be in range.

## Rich cards, carousels and templates

Besides text, you can send a rich card, a carousel of cards, or a saved template. Use one of these, not both:

* `rcsContent` - a `CARD` or `CAROUSEL` sent inline: `{"type": "CARD" | "CAROUSEL", "content": {...}}`. It is not reviewed in advance.
* `rcsTemplateName` (with `rcsTemplateVariables`) - an approved [template](https://www.vobiz.ai/docs/sms/rcs-senders.md#templates) of the `from` sender, of type `TEXT`, `CARD` or `CAROUSEL`. Only templates with status `APPROVED` or `APPROVED_PARTIALLY` can be sent. `rcsTemplateVariables` is an object of strings that fills the template's `{{name}}` placeholders; every placeholder needs a value and every value needs a placeholder.

Both require `channel: "rcs"`, and both cannot be combined with `mediaUrls` or a future `scheduledAt`. `text` becomes the SMS fallback text and is required when `failoverToSms` is `true`. `rcsSuggestions`, when set, appear under the card or carousel; a `TEXT` template carries its own suggestions instead.

```bash cURL theme={null}
curl -X POST "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "AcmeStore",
    "to": ["+14155550123"],
    "channel": "rcs",
    "text": "Acme: Your order #4821 is ready for pickup. https://example.com/orders/4821",
    "rcsContent": {
      "type": "CARD",
      "content": {
        "orientation": "VERTICAL",
        "alignment": "LEFT",
        "content": {
          "title": "Order #4821 is ready",
          "description": "Pick it up at Acme Store, Market St.",
          "media": { "file": { "url": "https://example.com/media/order-4821.jpg" }, "height": "MEDIUM" },
          "suggestions": [
            { "type": "OPEN_URL", "text": "View order", "url": "https://example.com/orders/4821" },
            { "type": "CREATE_CALENDAR_EVENT", "text": "Add pickup", "title": "Acme pickup", "startTime": "2026-12-01T10:00:00Z", "endTime": "2026-12-01T11:00:00Z" }
          ]
        }
      }
    },
    "failoverToSms": true
  }'
```

Sending a template instead:

```json theme={null}
{
  "from": "AcmeStore",
  "to": ["+14155550123"],
  "channel": "rcs",
  "rcsTemplateName": "order-shipped",
  "rcsTemplateVariables": { "orderId": "4821", "trackingUrl": "https://example.com/t/4821" }
}
```

### Content shape and limits

| Type | `content` | Limits |
| - | - | - |
| `TEXT` (templates only) | `{"text": "...", "suggestions": [...]}` | `text` up to 3072 characters; up to 11 suggestions |
| `CARD` | `{"orientation": "VERTICAL" \| "HORIZONTAL", "alignment": "LEFT" \| "RIGHT", "content": <card>}` | Defaults `VERTICAL`, `LEFT` |
| `CAROUSEL` | `{"cardWidth": "SMALL" \| "MEDIUM", "contents": [<card>, ...]}` | 2 to 10 cards; default `MEDIUM`; `TALL` media needs `MEDIUM` |

A card is `{"title", "description", "media", "suggestions"}`:

* It needs a `title` or `media`. `title` is up to 200 characters, `description` up to 2000.
* `media` is `{"file": {"url"}, "thumbnail": {"url"}, "height": "SHORT" | "MEDIUM" | "TALL"}`; URLs must be `http(s)`, `height` defaults to `MEDIUM`.
* Up to 4 `suggestions` per card, with the same rules as `rcsSuggestions`.

Unknown fields are rejected. A request that breaks a rule returns `400` with the field in `error`, for example `{"error": "rcsContent: contents: a carousel needs 2-10 cards, got 1"}`.

## Fall back to SMS

With `failoverToSms: true`, when the RCS platform rejects the send at the time of your request, Vobiz sends `text` as SMS from the same `from`, through the same route. The result is a single message record with `channel: "sms"` and `status: "sent"`, and the call returns `201 Created`. Buttons, cards and media are RCS features and are left out of the SMS.

* The fallback happens only when the send is rejected immediately. A message the RCS platform accepts and that later fails or is not delivered is not resent as SMS.
* The SMS uses the same `from`. US and Canadian carriers require a registered number as the SMS sender, so for recipients in the US and Canada the fallback only works when `from` is a number on your account, not a sender name.
* The fallback respects SMS opt-outs: a recipient opted out of SMS does not get it.

Without `failoverToSms`, a rejected RCS send is stored with `status: "failed"` and the reason in `errorMessage`, and the call returns `202 Accepted`.

An RCS message that falls back to SMS is billed as SMS.

## Check reachability first

[RCS reachability](https://www.vobiz.ai/docs/sms/api/messages/rcs-reachability.md) asks the RCS platform whether a number can receive RCS from your sender. Use it to pick RCS or SMS before you send, or to decide whether to spend on rich media.

```bash cURL theme={null}
curl -G "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Message/RcsReachability/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  --data-urlencode "from=AcmeStore" \
  --data-urlencode "to=+14155550123"
```

```json Response - 200 OK theme={null}
{
  "to": "+14155550123",
  "reachable": true,
  "carrier": "Example Mobile"
}
```

| Field | Meaning |
| - | - |
| `to` | The number you asked about. |
| `reachable` | `true` when the handset can receive RCS from this sender. |
| `carrier` | The recipient's carrier, when the platform reports it. |
| `capability` | A capability label, when the platform reports one. |

`from` and `to` are both required (`400 {"error":"from and to are required"}`). `from` must be an RCS sender so the request can be routed to the RCS platform.

## Receive button taps and replies

When a recipient taps a `REPLY` button or types a reply, Vobiz stores an inbound message with `direction: "in"` and `status: "received"` in the [conversation](https://www.vobiz.ai/docs/sms/conversations.md) between your sender and that number. A button tap arrives with the button's `text`. `postbackData` is not currently included on inbound messages, so give buttons distinct labels if you need to tell them apart.

Receive these in real time with the `message.received` [webhook](https://www.vobiz.ai/docs/sms/webhooks.md) event or over the [WebSocket](https://www.vobiz.ai/docs/sms/websocket.md).

## Statuses

RCS uses the same statuses as SMS: `sent`, `delivered`, `failed`, `unknown` for outbound and `received` for inbound, with `statusHistory` on [Retrieve a message](https://www.vobiz.ai/docs/sms/api/messages/get-message.md). An RCS send is a single segment. See [SMS statuses](https://www.vobiz.ai/docs/sms/channels/sms.md#message-statuses).

## Before you go live

> [card] [RCS senders](https://www.vobiz.ai/docs/sms/rcs-senders.md)
>
> Create and verify the sender you send from.

> [card] [Compliance overview](https://www.vobiz.ai/docs/sms/compliance/overview.md)
>
> Register the numbers your SMS fallback uses.

## Related

> [card] [RCS senders](https://www.vobiz.ai/docs/sms/rcs-senders.md)
>
> Register and manage the branded sender your messages come from.

> [card] [Send a message](https://www.vobiz.ai/docs/sms/api/messages/send-message.md)
>
> Every request field, response and error code.

> [card] [RCS reachability](https://www.vobiz.ai/docs/sms/api/messages/rcs-reachability.md)
>
> Endpoint reference for the reachability check.

> [card] [Conversations](https://www.vobiz.ai/docs/sms/conversations.md)
>
> Where replies and button taps are stored.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.