> For the complete documentation index, see [llms.txt](https://docs.360dialog.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.360dialog.com/docs/messaging/message-types/interactive/media-carousel.md).

# Media carousel

Interactive media carousel messages display a set of horizontally scrollable media cards. Each card can display an image or video header, body text, and either quick-reply buttons or a URL button.

<figure><img src="/files/t8Hh5szF1wfDYkkqaVsR" alt=""><figcaption></figcaption></figure>

This is the same message, but using quick-reply buttons instead of URL buttons:

<figure><img src="/files/CtKrK52k3mSl65TqZuYg" alt=""><figcaption></figcaption></figure>

### Components

* Messages must include between 2 and 10 cards.
* Main message body text is required.
* Main message headers, footers, and interactive components are not supported.
* Cards must include either an image or a video header. Other header types are not supported.
* Card body text is optional.
* Cards must include either one URL button or one or more quick-reply buttons. Button types and numbers must match across all cards (for example, if you define a card with 2 quick-reply buttons, all cards must define exactly 2 quick-reply buttons).

### Example

<mark style="color:green;">`POST`</mark> `https://waba-v2.360dialog.io/messages`

To send a message, use the request URL and the following parameters.

**Parameters**

| Name                                                  | Type    | Description                                                                                                                                                      |
| ----------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| card\_body\_text                                      | string  | Card body text. Max 160 characters, and up to 2 line breaks.                                                                                                     |
| card\_index<mark style="color:red;">\*</mark>         | integer | <p><code>0</code></p><p>Zero-index card index. Cards will appear left to right in a scrollable view, starting from 0.</p>                                        |
| header\_type<mark style="color:red;">\*</mark>        | string  | Value can be `image` or `video` [Supported media types](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-phone-numbers/media). |
| media\_asset\_url<mark style="color:red;">\*</mark>   | string  | Publicly available media asset URL.                                                                                                                              |
| message\_body\_text<mark style="color:red;">\*</mark> | string  | Main message body text. Maximum 1024 characters.                                                                                                                 |
| quick\_reply\_button\_id                              | string  | Maximum 20 characters.                                                                                                                                           |
| quick\_reply\_button\_label                           | string  | Maximum 20 characters.                                                                                                                                           |
| url\_button\_label                                    | string  | Maximum 20 characters.                                                                                                                                           |
| url\_button\_url                                      | string  | URL to load in the device’s default web browser when tapped by the user. Maximum 20 characters.                                                                  |
| user\_phone\_numers<mark style="color:red;">\*</mark> | string  | WhatsApp user phone number.                                                                                                                                      |

#### Example with URL buttons

**Request**

```
curl --location 'https://https://waba-v2.360dialog.io/messages' \
--header 'Content-Type: application/json' \
--header 'D360-API-KEY: <token>' \
--data '
{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "<<RECIPIENT_PHONE_NUMBER>>",
  "type": "interactive",
  "interactive": {
    "type": "carousel",
    "body": {
      "text": "<BODY_TEXT>"
    },
    "action": {
      "cards": [
        {
          "card_index": 0,
          "type": "cta_url",
          "header": {
            "type": "image",
            "image": {
              "link": "https://www.yourimage.jpeg"
            }
          },
          "body": {
            "text": "<BODY_TEXT>"
          },
          "action": {
            "name": "cta_url",
            "parameters": {
              "display_text": "<TEXT>",
              "url": "https://www.website.com/url-example"
            }
          }
        },
        {
          "card_index": 1,
          "type": "cta_url",
          "header": {
            "type": "image",
            "image": {
              "link": "https://www.yourimage.jpeg"
            }
          },
          "body": {
            "text": "<BODY_TEXT>"
          },
          "action": {
            "name": "cta_url",
            "parameters": {
              "display_text": "<TEXT>",
              "url": "https://www.website.com/url-example"
            }
          }
        },
        {
          "card_index": 2,
          "type": "cta_url",
          "header": {
            "type": "image",
            "image": {
              "link": "https://www.yourimage.jpeg"
            }
          },
          "body": {
            "text": "<BODY_TEXT>"
          },
          "action": {
            "name": "cta_url",
            "parameters": {
              "display_text": "<TEXT>",
              "url": "https://www.website.com/url-example"
            }
          }
        }
      ]
    }
  }
}'
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "messaging_product": "whatsapp",
  "contacts": [{
    "input": "PHONE_NUMBER",
    "wa_id": "WHATSAPP_ID",
  }]
  "messages": [{
    "id": "wamid.ID",
  }]
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.360dialog.com/docs/messaging/message-types/interactive/media-carousel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
