Skip to content

createWebhookHandler

createWebhookHandler(options?): WebhookHandlerApi

Defined in: src/resources/webhook-handler.ts:16

Creates an event-driven webhook handler that verifies X-Hub-Signature-256 with node:crypto. Register handlers with on, then call handleRequest (fetch-style frameworks) or handleDelivery (raw body plus header).

CreateWebhookHandlerOptions = {}

WebhookHandlerApi

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