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.
Properties
Section titled “Properties”contacts?
Section titled “contacts?”
optionalcontacts?:WebhookContact[]
Defined in: src/types/webhooks.ts:475
Contact profiles for incoming messages and (except failed) message statuses.
errors?
Section titled “errors?”
optionalerrors?:WebhookMessageError[]
Defined in: src/types/webhooks.ts:481
Standalone errors reported on the value.
messages?
Section titled “messages?”
optionalmessages?:IncomingMessage[]
Defined in: src/types/webhooks.ts:477
Inbound messages.
messaging_product
Section titled “messaging_product”messaging_product:
"whatsapp"
Defined in: src/types/webhooks.ts:471
Always whatsapp for Cloud API webhook values.
metadata
Section titled “metadata”metadata:
WebhookMetadata
Defined in: src/types/webhooks.ts:473
Business phone number metadata for the event.
statuses?
Section titled “statuses?”
optionalstatuses?: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.