Rich cards and carousels: how to format content in RCS
A rich card is a message with an image, a title, text and up to four buttons. A carousel is two to ten of those cards in a row, which the recipient swipes through sideways. Both are sent with the same API call as a plain text message: instead of text, you pass a rich_card object. Add an SMS text to the same call and the message also reaches recipients who don't have RCS.
Key points
- A rich card has an image or video, a title, a description and buttons.
- A carousel is several cards in a row. Each card has the same parts and the same limits as a single rich card.
- The image must be a JPEG, PNG or GIF at a public URL, in the aspect ratio that matches the card's height.
- Android crops the image to the card's height. iPhone always shows the whole image.
- If the recipient doesn't have RCS, your SMS text is sent instead. The image and buttons are left out, so the text has to work on its own.
What is a rich card?
A rich card puts an image, text and buttons in a single message. The recipient sees it as a box in their messaging app and can act on it straight away with a button: open a link, call, show a place on a map, add an event to their calendar or answer with a preset reply.
A card has four parts. All of them are optional, as long as the card has at least an image, a title or a description:
All limits are listed in our API documentation.
A card is either vertical, with the image at the top, or horizontal, with the image to the left or right of the text. You set this with card_orientation (VERTICAL or HORIZONTAL) and thumbnail_image_alignment (LEFT or RIGHT, used only for horizontal cards). For a vertical card, you choose the image height with height:
Dp (density-independent pixels) is Android's scale-free unit: the same size on screen whatever the phone's pixel density.
Also set content_description, a description of the image of at most 200 characters. Screen readers read it aloud.
How to send a rich card
The example sends a vertical card with an image, a title, text and one button that opens a web page. sms_fallback is the SMS text that is sent if the recipient can't receive RCS.
The response
The API responds with 202 Accepted and the message's id. The same id comes back in every event sent to your webhook: delivered, read, and when the recipient taps a button.
Tapping a button sends the button's postback_data to your webhook, so your system knows which button it was without having to interpret text. The buttons and what they can do are covered in a separate article on suggested replies and actions.
How do you build a carousel?
A carousel is a list of two to ten cards in carousel_card.card_contents. Each card has the same parts and limits as a single rich card, with up to four buttons per card. The cards are always vertical, with the image at the top. You choose the width for the whole carousel with card_width:
Three things to keep in mind:
- The same height and image format in every card. All cards are drawn as tall as the tallest one. With the same
heightand images in the same aspect ratio, the row looks even. - Short texts. If the content doesn't fit, it is shortened in this order: the description to one line, the title to one line, the buttons are removed, the description is removed, the title is removed.
- Most important first. The recipient sees the first card straight away. They have to swipe to see the rest.
The example sends three cards, each with its own image, title, text and button.
The response
Rich cards and carousels side by side
What does it look like on Android and iPhone?
Android and iPhone show the same card, with the same title and text, but they handle the image and the buttons differently:
- Android (Google Messages) draws the image at the height you set with
height. If the image has a different aspect ratio, it is zoomed in and cropped from the centre, so the edges may be cut off. The buttons are shown directly on the card. - iPhone (Messages) ignores
height. Vertical cards and carousels always show the whole image. If a card has two or more buttons that open a link or make a call, they are collected in a menu, Options, that the recipient has to open first. A reply button is shown as a separate bubble below the card instead.
So make the image in the aspect ratio that matches the height, for example 3:2 for TALL as in the example. It then looks the same on both, and nothing important is cropped away on Android. Never put text or a logo close to the edges of the image.
What happens if the recipient doesn't have RCS?
The text in sms_fallback is then sent as a regular SMS from the sender you specify, and your webhook receives the sms.out.sent event. The image and the buttons are left out. The same applies if you have set timeout_seconds and the RCS message hasn't been delivered before the time runs out.
So write the SMS text to work on its own:
- The message in plain words, without referring to the image.
- A link in place of the most important button. The other buttons can live on the web page.
- The sender is a name of at most 11 characters (letters and digits) or a phone number.
- At most 1,530 characters.
If you want to know in advance which recipients have RCS, you can ask the API before you send. How fallback works is described in RCS vs SMS.
Frequently asked questions
Get started with rich cards and Spirius
Rich cards and carousels are sent through our RCS API, with a verified sender and SMS fallback in the same call. All fields and limits are described in the API documentation. Read more about what RCS can do on our RCS page.
Sources
- Google: Rich cards and carousels
- Google: Send messages
- Spirius: RCS API documentation






