Webhook normalized vs meta_raw: how to choose

CRPRO Hub's two payload modes, the events each receives, how the event list filters, and why payload_mode and delivery_format are independent.

When you create a webhook endpoint at CRPRO Hub, two choices look small and determine half of your receiving code: the payload mode and the list of subscribed events. Getting them wrong produces the most common support symptom, events that "do not arrive" when they actually arrive by another route or are not even subscribed. This article explains the options and gives a criterion for choosing.

The two payload modes

The normalized mode, which is the default, delivers a CRPRO Hub envelope that is the same for every event; the meta_raw mode delivers Meta's raw payload. In the first, the body has id, event, channel_id, occurred_at and data, and only the content of data changes between events. In the second, the body is the JSON in the whatsapp_business_account format, the way Meta sends it, and if an event has no raw counterpart it falls back to normalized.

{ "id": "6f1f0f6a-3b2c-4d1e-9a8b-0c1d2e3f4a5b", "event": "message.received", "channel_id": "9f6a9c1e-2f3d-4a5b-8c7d-1e2f3a4b5c6d", "occurred_at": "2026-08-21T12:00:00.000Z", "data": { "...": "event-specific content" } }

The practical difference is how much the Hub does for you. Normalized resolves the message content into ready-made fields and puts the event id at the top, which makes deduplication easier. Raw preserves everything Meta sent, which suits anyone who already has code written against Meta's format and wants to migrate without rewriting the parser.

An important side effect: in meta_raw mode the body has no event id at the top. The deduplication key becomes the message id, the wamid, which comes inside Meta's payload, combined with the state when the event is a status.

Which events each mode receives

Each event has a destination per mode. The meta.raw event goes only to meta_raw endpoints. The channel events, channel.created, channel.connected, channel.degraded and channel.disconnected, and the test event webhook.test go to both modes. Everything else, meaning message, template, quality and account events, goes only to normalized endpoints.

Eventnormalizedmeta_raw
message.received, message.sent, message.status, message.echoreceivesdoes not receive
template.status, phone.quality, account.updatereceivesdoes not receive
meta.rawdoes not receivereceives
channel.* and webhook.testreceivesreceives

That produces a concrete trap: subscribing to meta.raw on a normalized endpoint delivers nothing, and subscribing to message.received on a meta_raw endpoint does not either. There is no error at creation; the endpoint is born active and silent. If you changed mode and events vanished, start here.

The event list: empty means all

The events field starts empty, and an endpoint with an empty list receives all events applicable to its mode, not none. It is a default that surprises in both directions: whoever forgets to fill it receives more than wanted, and whoever fills it and forgets message.received gets statuses but never messages.

The recommendation is to subscribe explicitly to what you use. For a bot that answers customers, message.received and message.status cover the essentials. Channel events are for anyone monitoring the number's health, because channel.disconnected and channel.degraded warn when the number loses registration or the account is restricted. The endpoint can also be limited to specific channels: with all_channels false, only events from the listed channels arrive.

A concrete example: two endpoints for two jobs

Imagine a product with a bot and an audit trail. The bot only needs to react to inbound messages and check deliveries; the audit wants to keep everything Meta sent, without interpretation. Instead of one endpoint trying to be both, create two, each with the right mode.

curl -X POST https://crprohub.com/api/v1/webhooks \ -H "Authorization: Bearer hub_pk_EXEMPLO_NAO_REAL" \ -H "Content-Type: application/json" \ -d '{ "name": "Support bot", "url": "https://exemplo.com/webhooks/crprohub", "event_types": ["message.received", "message.status"], "payload_mode": "normalized", "delivery_format": "native" }'
  • Bot endpoint: normalized, events message.received and message.status, native signature format.
  • Audit endpoint: meta_raw, which receives Meta's raw payload in the meta.raw event.
  • Each has its own secret and its own receiver, and can pause without affecting the other.
  • The bot does not handle Meta formats; the audit does not interpret anything.

The separation has an operational benefit: if the audit receiver goes down and its endpoint pauses, the bot keeps receiving. Two endpoints also let different teams look after each one, each receiver evolving at its own pace.

Migrating from one mode to the other without a gap

The safest way to migrate is to run both endpoints side by side for a while. Create the new endpoint in the target mode, point it at a receiver that only records what arrives, and compare it with the old one for a few days. Once the new receiver handles every case, switch the business logic over and pause the old endpoint. Because both receive the same underlying events, any difference you see in the comparison is a bug in your parsing, found before it costs a customer message.

During the overlap, deduplicate across endpoints by the message identifier, the wamid, not by the event id: the two modes do not share the same top-level identifier. Keep the overlap short, since two live receivers double your operational surface. When the comparison shows no differences for a full cycle of your busiest period, the migration is done.

payload_mode and delivery_format are independent

The payload mode chooses what goes in the body; the delivery format chooses how that body is signed. They are independent fields, and one does not imply the other. delivery_format can be native, the default and safer, where the signature covers timestamp, delivery id and body, or evohub, where it covers only the body, meant for people migrating from EvoHub.

delivery_format does not change after creation. To switch, create another endpoint. If you create another endpoint with a different mode, remember that the mode changes which events arrive, as in the table above. Read the X-Hub-Signature-Version header before computing the HMAC, so your code knows which formula to apply.

The CRPRO Hub webhooks page has the complete reference for modes and event types, and the quickstart covers the first authenticated calls.

Frequently asked questions

Which payload mode should I use?

Normalized, the default, if you want a stable envelope and the event id at the top. meta_raw if you already have code written against Meta's format and want the original JSON.

Why did I subscribe to message.received and nothing arrives?

Probably the endpoint is in meta_raw mode: it receives meta.raw and channel events, but not message events. Change the mode or subscribe to meta.raw.

Does an empty event list mean no events?

No. An empty list receives all events applicable to the endpoint's mode. Subscribe explicitly to what you use.

Can I change delivery_format after creating the endpoint?

No. delivery_format does not change after creation. Create another endpoint with the format you want.

Fontes

Documentação oficial da Meta, conferida em 31 de outubro de 2026.