# Template components

> The components of a template changed. Routed by WABA.

Canonical: https://docs.whabuzz.com/events/template-components/

The components of a template changed. Routed by WABA.

**Event type:** `template.components`. Fixture payloads are the WhaBuzz Demo tenant's real ids with a fictional customer number; `id`, `tenant_id` and `created_at` in envelopes are illustrative.

## Template components changed {#template-components-update}

What Meta POSTs to WhaBuzz (`fixtures/meta/template_components_update.json`):

```json
{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "26059971920328384",
      "changes": [
        {
          "value": {
            "message_template_id": 1315502779341834,
            "message_template_name": "order_confirmation",
            "message_template_language": "en_US",
            "message_template_title": "Your order is confirmed!",
            "message_template_element": "Thank you for your order, {{1}}! Your order number is {{2}}.",
            "message_template_footer": "WhaBuzz Demo",
            "message_template_buttons": [
              {
                "message_template_button_type": "PHONE_NUMBER",
                "message_template_button_text": "Phone support",
                "message_template_button_phone_number": "+14692311132"
              },
              {
                "message_template_button_type": "URL",
                "message_template_button_text": "Email support",
                "message_template_button_url": "https://example.com/support"
              }
            ]
          },
          "field": "message_template_components_update"
        }
      ]
    }
  ]
}
```

What your endpoint receives, as the body of a signed POST. `raw` is abbreviated here; on the wire it is the full body above.

```json
{
  "id": "evt_01JAB3K9X2S8C4M7Q1V5R6T0YZ",
  "type": "template.components",
  "api_version": "2026-10-16",
  "created_at": "2026-10-16T09:00:00.481Z",
  "tenant_id": "a578246e-b97f-48e6-ae42-939ec3ccf917",
  "waba_id": "26059971920328384",
  "phone_number_id": null,
  "display_phone_number": null,
  "wamid": null,
  "wa_id": null,
  "user_id": null,
  "dedupe_key": "message_template_components_update:<sha256 of the canonical value>",
  "data": {
    "message_template_id": 1315502779341834,
    "message_template_name": "order_confirmation",
    "message_template_language": "en_US",
    "message_template_title": "Your order is confirmed!",
    "message_template_element": "Thank you for your order, {{1}}! Your order number is {{2}}.",
    "message_template_footer": "WhaBuzz Demo",
    "message_template_buttons": [
      {
        "message_template_button_type": "PHONE_NUMBER",
        "message_template_button_text": "Phone support",
        "message_template_button_phone_number": "+14692311132"
      },
      {
        "message_template_button_type": "URL",
        "message_template_button_text": "Email support",
        "message_template_button_url": "https://example.com/support"
      }
    ],
    "field": "message_template_components_update"
  },
  "raw": {
    "…": "the complete Meta POST body, byte for byte, as shown above"
  },
  "raw_path": "entry[0].changes[0].value"
}
```
