Skip to content

verifyWebhookQuery

verifyWebhookQuery(query, expectedToken): WebhookVerificationResult

Defined in: src/resources/webhooks.ts:99

Convenience wrapper around verifyWebhook accepting a raw query map with the literal hub.mode, hub.verify_token, and hub.challenge keys as delivered on the verification request.

Record<string, string | undefined>

Raw query parameters keyed by their hub.* names.

string

The verify token configured for this endpoint.

WebhookVerificationResult

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