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

# Send RCS Messages

> Send rich messages from your verified brand to the phone's own messaging app over RCS: text, media, cards, carousels and buttons, with the same APIs as WhatsApp 💬

RCS (Rich Communication Services) is the successor to SMS on modern phones. Your messages arrive in the phone's own messaging app, such as Google Messages on Android or Messages on iPhone, from your verified brand, with its name and logo. They can carry media, cards, carousels and buttons, and the customer needs no app of yours.

Connectly sends RCS through the same APIs as WhatsApp: [Send session message](https://docs.connectly.ai/messaging/session-messages.md), [Send campaigns](https://docs.connectly.ai/campaigns/send-campaigns.md) and [webhooks](https://docs.connectly.ai/webhooks/overview.md). Set `channelType` to `rcs` wherever the API asks for a channel.

## How RCS differs from WhatsApp

| | WhatsApp | RCS |
| - | - | - |
| **Who receives it** | People with WhatsApp | Phones with RCS turned on, on a carrier that supports it |
| **Your sender** | Your WhatsApp number | Your RCS sender, named by its sender name |
| **Templates** | Required outside the 24-hour window | None: every message is sent as you write it |
| **24-hour window** | Yes | No window |
| **Buttons** | Reply buttons in session messages. Reply, link and call buttons in templates | Reply, link and call buttons, mixed in one message |
| **When a phone can't receive it** | Not delivered | Not delivered. Connectly doesn't fall back to SMS or WhatsApp |

## Your RCS sender

Your RCS sender is your brand's verified identity on RCS: the display name, logo, banner, color, description and contacts customers see. Google calls it an agent. Your Connectly account manager registers it and requests its launch with Google and the carriers in your country.

* **Before launch**, the sender can only message the test phones your account manager added. Use them to see your messages on Android and iPhone.
* **After launch**, it can message any phone in that country that can receive RCS.
* **The sender name** identifies the sender in the API, for example `acme_k3x9q2`. Customers never see it: their phones show the display name. Message and delivery status events carry it as your side's `id`.

## Send a message

Send RCS with [Send session message](https://docs.connectly.ai/messaging/session-messages.md), with the recipient's `channelType` set to `rcs`.

```json theme={null}
POST https://api.connectly.ai/v1/businesses/{businessId}/send/messages
```

| Field | On RCS |
| - | - |
| `sender.id` | Your sender name. You can omit `sender` when your business has one RCS sender. With more than one, it's required. |
| `sender.channelType` | Optional. When set, it must be `rcs`, like `recipient.channelType`. |
| `recipient.id` | The customer's phone number in E.164 format, such as `+5511987654321`. BSUIDs are WhatsApp only. |
| `recipient.channelType` | `rcs` |
| `message` | What to send. See [What a message can hold](#what-a-message-can-hold). |
| `callbackData` | Works as on WhatsApp. |
| `campaignName` | Accepted and ignored. |

```bash cURL theme={null}
curl --request POST \
  --url https://api.connectly.ai/v1/businesses/<business_id>/send/messages \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <YOUR_KEY_HERE>' \
  --data '{
    "sender": { "id": "acme_k3x9q2", "channelType": "rcs" },
    "recipient": { "id": "+5511987654321", "channelType": "rcs" },
    "message": { "text": "Your order is on its way!" }
  }'
```

The response is the message's ID, as on WhatsApp: `{ "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV" }`.

### What a message can hold

A message is `text`, one file in `attachments`, a `location`, or a `replyButtonMessage`, `listMessage` or `carouselMessage`. With buttons or a list, `text` is the text that goes with them. A `header` adds a card's title and media to text, buttons or a list, or stands alone. A file, a location and a carousel take neither `text` nor `header`.

> [!NOTE]
>
> Every length limit on this page counts UTF-16 code units, as JavaScript's `length` does: most emoji count as two, and a flag or a skin-toned emoji as four.

| Content | On RCS |
| - | - |
| `text` | Up to 3,072 characters. |
| `attachments` | One image, video, audio file or document, fetched from its public `url`. An image or video goes out as a rich card when it has a `caption`, which becomes the card's description, or when `rcs.cardLayout` is set. Otherwise it goes out as a file. Audio and documents go out as files: a `caption` or `rcs.cardLayout` on them is refused, and a document's `filename` isn't sent. |
| `header` | The title and media of a rich card. See [Rich cards](#rich-cards). |
| `replyButtonMessage` | Buttons, which can reply, open a link or start a call. See [Buttons](#buttons). |
| `listMessage` | Each row becomes a reply button. The rows show under the message, so there is no button to open the list. |
| `carouselMessage` | 2 to 10 rich cards the customer swipes through. See [Carousels](#carousels). |
| `location` | Sent as text: the location's name and address, then a Google Maps link. RCS has no location message. |

`flowMessage` is refused on RCS. RCS has no footers: `footer` is refused on every message. RCS reads a message's header only from the message's own `header`, so the `header` inside `replyButtonMessage` or `listMessage` is refused. A list's section `title`s and row `description`s are refused too, and its `button` is ignored.

### Rich cards

A rich card is a bubble holding media, a title, a description and buttons. A message with media in its `header`, or with `rcs.cardLayout` set, goes out as a card:

* **Title:** `header.text` or `header.card.text`, up to 200 characters.
* **Media:** `header.attachment` or `header.card.attachment`, an image or a video. Use `header.card` to give a card both a title and media.
* **Description:** `text`, up to 2,000 characters.
* **Buttons:** the buttons of `replyButtonMessage`, or the rows of `listMessage`. The first 4 sit inside the card and the rest under it.

A card needs a title or media. Without media or `rcs.cardLayout`, `header.text` is the first line of a text message instead.

`rcs.cardLayout` lays the card out:

| Field | Values |
| - | - |
| `orientation` | `vertical`, media above the text, the default. `horizontal`, media beside the text. |
| `imageAlignment` | `left` or `right`: where the media sits on a horizontal card. |
| `mediaHeight` | `short`, `medium` or `tall`: how tall the media is on a vertical card. |

A horizontal card needs a title, a description or a button besides its media.

```json theme={null}
{
  "sender": { "id": "acme_k3x9q2", "channelType": "rcs" },
  "recipient": { "id": "+5511987654321", "channelType": "rcs" },
  "message": {
    "header": {
      "card": {
        "text": "Black Friday",
        "attachment": { "type": "image", "url": "https://acme.com/bf.jpg" }
      }
    },
    "text": "Everything 30% off until Sunday.",
    "replyButtonMessage": {
      "buttons": [
        { "id": "shop", "text": "Shop now", "url": { "url": "https://acme.com/bf" } },
        { "id": "later", "text": "Remind me later" }
      ]
    },
    "rcs": { "cardLayout": { "orientation": "vertical", "mediaHeight": "medium" } }
  }
}
```

### Buttons

Each button in `replyButtonMessage.buttons` has a label, `text`, of up to 25 characters, and does one of three things:

| Button | Fields | What a tap does |
| - | - | - |
| Reply | `id`, up to 2,048 characters | Sends `id` back to you as the customer's answer. See [Webhooks on RCS](#webhooks-on-rcs). |
| Link | `url.url`: an `http` or `https` link of up to 2,048 characters | Opens the link in the browser. Nothing comes back to you. |
| Call | `phoneNumber.phoneNumber`: an E.164 number, such as `+551130000000` | Opens the phone's dialer. Nothing comes back to you. |

The three kinds mix in any order: up to 11 under a message, or up to 4 inside a card. Link and call buttons are RCS only and refused on WhatsApp.

### Carousels

`carouselMessage.cards` holds 2 to 10 rich cards. Each card has:

* **`header`:** its title (`header.text` or `header.card.text`, up to 200 characters) and its media (`header.attachment` or `header.card.attachment`). A card needs a title or media.
* **`bodyText`:** its description, up to 2,000 characters.
* **`action`:** either `ctaUrl`, one button that opens a link, or `quickReplyButtons`, up to 4 buttons of any kind.

RCS has no place for text above a carousel, so a carousel message takes no `text` or `header`. Send an introduction as its own message first.

### When RCS can't send it

A message RCS can't send is refused before anything goes out. The response is `400`, and the error names the field, in the API's snake\_case:

```json theme={null}
{
  "message": "message.reply_button_message.footer: has no place on RCS",
  "type": "ERROR_TYPE_INVALID_ARGUMENT",
  "code": "ERROR_CODE_BAD_REQUEST",
  "userTitle": "Bad request sent",
  "userMessage": "Request or param(s) detected.",
  "details": {
    "0": "interactive.reply_button_message.footer has no place on RCS",
    "message.reply_button_message.footer": "has no place on RCS"
  },
  "cntTraceId": "16685736524770852007"
}
```

`details` maps the refused field to the reason. Skip any key that isn't a field name, such as `"0"`.

## Delivery

* **No window and no templates.** You can message a customer at any time, as long as you have their consent.
* **Phones that can't receive RCS don't get the message.** That happens when RCS is turned off on the phone, the phone or its carrier doesn't support it, or your sender isn't launched in the customer's country. The message fails with `delivery_failed`. Connectly doesn't resend it by SMS or WhatsApp.
* **A phone that's off or has no connection** gets the message when it's back online, up to 48 hours after you send it. A message still undelivered by then fails with `delivery_failed`.
* **Statuses** are `sent` once the message is accepted for delivery, then `delivered`, `read` and `delivery_failed`, as on WhatsApp. `read` comes only when the phone reports the message seen, and some phones don't, so read counts can run low.
* **Typing indicators** are WhatsApp only.

## Webhooks on RCS

RCS events use the same topics and payloads as WhatsApp's, described in the [Webhook payload reference](https://docs.connectly.ai/webhooks/payload-types.md), with `channelType` set to `rcs`:

* **Your side's `id`** is your sender name. **The customer's `id`** is their phone number in E.164 format. RCS doesn't share the customer's name.
* **Inbound messages** are text, files (as `attachments`) and locations the customer shares.
* **A tap on a reply button or a list row** arrives as a `buttonResponse`, whose `payload` is the `id` you gave the button or row.
* **Taps on link and call buttons** aren't sent.
* **Delivery status events** cover the messages you send.

```json theme={null}
{
  "timestamp": "1764590000",
  "sender": {
    "id": "+5511987654321",
    "channelType": "rcs"
  },
  "recipient": {
    "id": "acme_k3x9q2",
    "channelType": "rcs",
    "name": "acme"
  },
  "message": {
    "id": "01JDZ8V5Q3W0A9C2N4R6T8Y1XB",
    "text": "Do you deliver on Sundays?"
  }
}
```

## Campaigns on RCS

A campaign's flow lists the channels it sends on, set in the Flow Builder: WhatsApp, RCS or both. The builder offers only what every listed channel can send. RCS has no templates: a flow for RCS only sends each message as you wrote it, with no review. A flow for both channels writes its messages as WhatsApp templates, which Meta reviews, and RCS sends the same content as regular messages.

* **Choosing RCS.** In [Send campaigns](https://docs.connectly.ai/campaigns/send-campaigns.md) and [Send to an audience](https://docs.connectly.ai/campaigns/send-to-audience.md), set `sender` to your sender name to send over RCS. Without `sender`, a flow for RCS only sends from your RCS sender, and a flow for WhatsApp, or for both, sends on WhatsApp. A flow that doesn't list RCS can't send from an RCS sender: Send campaigns refuses it with `the campaign's flow can't send on rcs`.
* **Recipients** are phone numbers in E.164 format. An audience contact known only by a WhatsApp BSUID is skipped on RCS.
* **A step that runs at once can't follow the first message.** A Tool Call, script or API call joined straight to an RCS campaign's first message is refused when you publish. Put a Time Delay between them.
* **A/B Split** works on RCS as on WhatsApp. See [Campaigns with an A/B Split](https://docs.connectly.ai/campaigns/send-campaigns.md#campaigns-with-an-a/b-split).
* **Customers who can't receive RCS** show as failed in the campaign report.

## Opt-outs on RCS

* **STOP, PARAR and BAJA** always opt a customer out on RCS, whatever your opt-out settings, when the keyword is the whole message, give or take punctuation and emoji: "Stop!" opts out, and "Stop sending me ads" doesn't. For +1 numbers, which cover the US, Canada and the Caribbean, so do QUIT, END, REVOKE, OPT OUT, OPTOUT, CANCEL and UNSUBSCRIBE. Connectly confirms in English, Portuguese or Spanish.
* **A customer who blocks your sender** stops getting your campaigns until they write to you again. Both changes reach the [`opt_status_update` webhook](https://docs.connectly.ai/webhooks/payload-types#opt-status-update-payloads).
* **Opt-outs are per channel.** A STOP on WhatsApp doesn't stop RCS messages, and a STOP on RCS doesn't stop WhatsApp ones.
* **Opting back in** works with keywords, as on WhatsApp. See [Contacts who opt back in themselves](https://docs.connectly.ai/opt-outs/overview.md#contacts-who-opt-back-in-themselves).
* **The Opt-Outs API and the dashboard's file upload** act on WhatsApp only.


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