# WhatsApp carousel templates: media and product cards

> Build WhatsApp media card and product card carousel templates: card limits, header and button rules, creation and send JSON, and which endpoint to use.

Published 2026-11-04. Z-API Omni team.

A WhatsApp carousel template is a marketing template with one message body and 2 to 10 cards that scroll sideways. Each media card has an image or video header, an optional body and up to two buttons. Meta says "carousel cards are only available for marketing template messages" ([Meta media card carousel templates, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/templates/marketing-templates/media-card-carousel-templates)). The card count you approve is the count you send. Product card carousels pull each card from your catalog, and a template approved with two cards can send up to 10. Because both are marketing templates, Meta's sunset of marketing on Cloud API applies to them, covered in [the Marketing Messages API guide](/academy/articles/whatsapp-marketing-messages-api/).

## Media card limits

| Element | Rule from Meta's page |
| --- | --- |
| Cards | Minimum 2, maximum 10, fixed at creation |
| Message body | Required, up to 1,024 characters including variable values |
| Card header | `image` or `video` |
| Card body | Optional, up to 160 characters including variable values |
| Buttons | Up to two per card: quick reply, phone number or URL |
| Button label | 25 characters |
| Phone number | 20 characters |
| URL variable | One, appended to the end of the URL |

"All cards defined on a template must have the same components." If one card has body text, every card needs it, "to ensure consistent card heights." Meta's page doesn't say in so many words that every header must use the same media type. Its example uses images on every card, and keeping one type is the safe reading of the components rule.

WhatsApp crops header media "to a wide ratio based on the WhatsApp user's device." The page lists no file formats or sizes, so check them against [WhatsApp media types and size limits](/academy/articles/whatsapp-media-messages-supported-types-size-limits/).

## Create a media card carousel template

At creation, each card header takes a `header_handle` from the Resumable Upload API, not a URL. This is Meta's example, reformatted, with shell variables for the token and WABA ID, and `UPLOAD_HANDLE_1` to `UPLOAD_HANDLE_3` in place of the truncated handles:

```bash
curl "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -d '{
    "name": "carousel_template_media_cards_v1",
    "language": "en_US",
    "category": "marketing",
    "components": [
      {
        "type": "body",
        "text": "Rare succulents for sale! {{1}}, add these unique plants to your collection. Each of these rare succulents are {{2}} if you checkout using code {{3}}. Shop now and add some unique and beautiful plants to your collection!",
        "example": { "body_text": [["Pablo", "30%", "30OFF"]] }
      },
      {
        "type": "carousel",
        "cards": [
          {
            "components": [
              { "type": "header", "format": "image", "example": { "header_handle": ["UPLOAD_HANDLE_1"] } },
              {
                "type": "buttons",
                "buttons": [
                  { "type": "quick_reply", "text": "Send me more like this!" },
                  { "type": "url", "text": "Shop", "url": "https://www.luckyshrub.com/rare-succulents/{{1}}", "example": ["BLUE_ELF"] }
                ]
              }
            ]
          },
          {
            "components": [
              { "type": "header", "format": "image", "example": { "header_handle": ["UPLOAD_HANDLE_2"] } },
              {
                "type": "buttons",
                "buttons": [
                  { "type": "quick_reply", "text": "Send me more like this!" },
                  { "type": "url", "text": "Shop", "url": "https://www.luckyshrub.com/rare-succulents/{{1}}", "example": ["BUDDHA"] }
                ]
              }
            ]
          },
          {
            "components": [
              { "type": "header", "format": "image", "example": { "header_handle": ["UPLOAD_HANDLE_3"] } },
              {
                "type": "buttons",
                "buttons": [
                  { "type": "quick_reply", "text": "Send me more like this!" },
                  { "type": "url", "text": "Shop", "url": "https://www.luckyshrub.com/rare-succulents/{{1}}", "example": ["BLACK_PRINCE"] }
                ]
              }
            ]
          }
        ]
      }
    ]
  }'
```

The body uses positional variables with an array-of-arrays example, the format explained in [template variables: positional and named parameters](/academy/articles/whatsapp-template-variables-named-parameters/). Every card here has the same two components and no card body. Meta's page shows no creation response.

## Send the carousel with per-card parameters

At send time the template body gets its own `body` component, and the carousel gets a `carousel` component with one entry per card. `card_index` is zero-based and sets the card's position. Each header now takes a media `id` from the `/media` upload endpoint. Meta shows no `link` option for card headers.

This is Meta's send example with shell variables and `MEDIA_ID_1` to `MEDIA_ID_3` in place of its asset IDs:

```bash
curl "https://graph.facebook.com/v26.0/$PHONE_NUMBER_ID/messages" \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -d '{
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "+16505551234",
    "type": "template",
    "template": {
      "name": "carousel_template_media_cards_v1",
      "language": { "code": "en_US" },
      "components": [
        {
          "type": "body",
          "parameters": [
            { "type": "text", "text": "Pablo" },
            { "type": "text", "text": "20%" },
            { "type": "text", "text": "20OFF" }
          ]
        },
        {
          "type": "carousel",
          "cards": [
            {
              "card_index": 0,
              "components": [
                { "type": "header", "parameters": [{ "type": "image", "image": { "id": "MEDIA_ID_1" } }] },
                { "type": "button", "sub_type": "quick_reply", "index": "0", "parameters": [{ "type": "payload", "payload": "more-aloes" }] },
                { "type": "button", "sub_type": "url", "index": "1", "parameters": [{ "type": "text", "text": "blue-elf" }] }
              ]
            },
            {
              "card_index": 1,
              "components": [
                { "type": "header", "parameters": [{ "type": "image", "image": { "id": "MEDIA_ID_2" } }] },
                { "type": "button", "sub_type": "quick_reply", "index": "0", "parameters": [{ "type": "payload", "payload": "more-crassulas" }] },
                { "type": "button", "sub_type": "url", "index": "1", "parameters": [{ "type": "text", "text": "buddhas-temple" }] }
              ]
            },
            {
              "card_index": 2,
              "components": [
                { "type": "header", "parameters": [{ "type": "image", "image": { "id": "MEDIA_ID_3" } }] },
                { "type": "button", "sub_type": "quick_reply", "index": "0", "parameters": [{ "type": "payload", "payload": "more-echeverias" }] },
                { "type": "button", "sub_type": "url", "index": "1", "parameters": [{ "type": "text", "text": "black-prince" }] }
              ]
            }
          ]
        }
      ]
    }
  }'
```

The example sends `"index": "0"` as a string, while Meta's syntax block on the same page uses the integer `0`. That syntax block also carries a `// Add additional cards here` comment inside the JSON, which you would have to delete before it runs. The example above has no such comment.

Button parameters must follow the template. "If any buttons use variables, the type and order of buttons must match the type and order defined on the template." Send the same number of cards the template was approved with.

## What comes back when someone taps

A quick reply returns its payload in the `messages` webhook, under `messages.button.payload`. Set a payload per card, as Meta's example does, so you know which product the person tapped. A URL button opens the device's default browser, "so no webhooks are triggered describing their order." For a purchase that stays inside WhatsApp, Meta points to product card carousels. For buttons outside a template, see [interactive buttons and list messages](/academy/articles/whatsapp-interactive-buttons-list-messages-limits/).

## Product card carousels from a catalog

A product card carousel needs "an e-commerce product catalog, with inventory, connected to your Messaging account" ([Meta product card carousel templates, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/catalogs/product-card-carousel-template-messages)). You define exactly two cards at creation, and the approved template can send up to 10. The header format is `product`, so image, title and price come from the catalog. The cards have no body text, and each card has "a single View button or URL button". The View button is type `spm`.

This is Meta's creation example with shell variables. Its body contains "you're" inside a single-quoted shell string, which ends the string early, so the apostrophe is escaped as `'\''`:

```bash
curl "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -d '{
    "name": "carousel_template_product_cards_v1",
    "language": "en_US",
    "category": "marketing",
    "components": [
      {
        "type": "body",
        "text": "Rare succulents for sale! {{1}}, add these unique plants to your collection. All three of these rare succulents are available for purchase on our website, and they come with a 100% satisfaction guarantee. Whether you'\''re a seasoned succulent enthusiast or just starting your plant collection, these rare succulents are sure to impress. Shop now and add some unique and beautiful plants to your collection!",
        "example": { "body_text": "Pablo" }
      },
      {
        "type": "carousel",
        "cards": [
          {
            "components": [
              { "type": "header", "format": "product" },
              { "type": "buttons", "buttons": [{ "type": "spm", "text": "View" }] }
            ]
          },
          {
            "components": [
              { "type": "header", "format": "product" },
              { "type": "buttons", "buttons": [{ "type": "spm", "text": "View" }] }
            ]
          }
        ]
      }
    ]
  }'
```

`body_text` is a plain string here, which Meta allows when the body has a single variable. At send time each card passes only a header parameter with `product_retailer_id` and `catalog_id`, and no button parameters for `spm`. Meta's example sends three cards from a two-card template:

```bash
curl "https://graph.facebook.com/v26.0/$PHONE_NUMBER_ID/messages" \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -d '{
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "+16505551234",
    "type": "template",
    "template": {
      "name": "carousel_template_product_cards_v1",
      "language": { "code": "en_US" },
      "components": [
        { "type": "body", "parameters": [{ "type": "text", "text": "Pablo" }] },
        {
          "type": "carousel",
          "cards": [
            { "card_index": 0, "components": [{ "type": "header", "parameters": [{ "type": "product", "product": { "product_retailer_id": "vrpj01fvwp", "catalog_id": "194836987003835" } }] }] },
            { "card_index": 1, "components": [{ "type": "header", "parameters": [{ "type": "product", "product": { "product_retailer_id": "va2l5ioeat", "catalog_id": "194836987003835" } }] }] },
            { "card_index": 2, "components": [{ "type": "header", "parameters": [{ "type": "product", "product": { "product_retailer_id": "sqpjv0mgde", "catalog_id": "194836987003835" } }] }] }
          ]
        }
      ]
    }
  }'
```

Replace the retailer IDs and catalog ID with your own. A tap on View opens the product details from your catalog, and an order placed there triggers an order webhook. "WhatsApp does not trigger order webhooks for URL-button flows."

## Carousel template or interactive carousel

Meta also documents a non-template carousel, sent as `type: "interactive"` with `interactive.type: "carousel"` ([Meta interactive media carousel messages, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/messages/interactive-media-carousel-messages)). It takes 2 to 10 cards and a required body of up to 1,024 characters. Card media can go by `link`. Each card carries either one `cta_url` button or quick-reply buttons, with type and count matching across cards, and labels are capped at 20 characters.

That page doesn't mention the customer service window. Meta's send messages guide says that once the window closes, "you can only send pre-approved template messages" ([Meta send messages, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/messages/send-messages)). Plan on the template version for anyone outside the window ([error 131047](/academy/articles/whatsapp-error-131047-24-hour-window-templates/)).

## Which endpoint sends a carousel template

Meta's samples send carousel templates to `/messages`. That holds while marketing is enabled on Cloud API for your WABA. If you set `disable_marketing_messages_on_cloud_api` to `true`, the same call returns error 131063. Send the same payload to `/<PHONE_NUMBER_ID>/marketing_messages` instead ([Meta send marketing messages, accessed 2026-11-04](https://developers.facebook.com/documentation/business-messaging/whatsapp/marketing-messages/send-marketing-messages)). After October 13, 2027, marketing sends on Cloud API return an error for every account. If a carousel is rejected at review instead, [common template rejection reasons](/academy/articles/whatsapp-template-rejected-common-reasons/) lists what Meta checks.

*Z-API Omni team*
