Skip to content

WebhookValue

Defined in: src/types/webhooks.ts:469

The value object inside a webhook change. Carries EITHER messages (incoming) OR statuses (updates), never both; contacts accompanies either one, and errors may also appear independently.

optional contacts?: WebhookContact[]

Defined in: src/types/webhooks.ts:475

Contact profiles for incoming messages and (except failed) message statuses.


optional errors?: WebhookMessageError[]

Defined in: src/types/webhooks.ts:481

Standalone errors reported on the value.


optional messages?: IncomingMessage[]

Defined in: src/types/webhooks.ts:477

Inbound messages.


messaging_product: "whatsapp"

Defined in: src/types/webhooks.ts:471

Always whatsapp for Cloud API webhook values.


metadata: WebhookMetadata

Defined in: src/types/webhooks.ts:473

Business phone number metadata for the event.


optional statuses?: MessageStatus[]

Defined in: src/types/webhooks.ts:479

Message status updates.

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.