Skip to content

WebhookContext

Defined in: src/types/webhook-events.ts:18

Where an event came from.

optional contact?: WebhookContact

Defined in: src/types/webhook-events.ts:28

The contact profile matching the sender or recipient, when the change carries one.


field: string

Defined in: src/types/webhook-events.ts:24

The subscription field that produced the event, e.g. messages or calls.


optional metadata?: WebhookMetadata

Defined in: src/types/webhook-events.ts:26

Business phone number metadata, when the change carries it.


optional time?: number

Defined in: src/types/webhook-events.ts:22

Unix epoch seconds of the entry, when Meta includes it.


wabaId: string

Defined in: src/types/webhook-events.ts:20

The WhatsApp Business Account (WABA) ID of the entry.

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