Class WhatsAppAPIMissingVerifyTokenError

Thrown when the Webhook Verify Token isn't provided in the constructor

The Webhook Verify Token is a custom secret key that is used to verify against the API the server is indeed the one that is supposed to receive the incoming requests.

Your server will receive a GET request with the hub.verify_token and hub.challenge parameters. The verify token should be equal to the one you provided in the constructor. Once validated, you should reply with the hub.challenge parameter.

The verify token is manually generated while setting up the callback URL in the Meta's app dashboard -> WhatsApp -> Configuration.

new WhatsAppAPI({
webhookVerifyToken: "your-verify-token",
// other options
});

Hierarchy (View Summary)

Properties

Accessors

Methods

Properties

httpStatus: number

The HTTP status code of the error

Accessors

  • get docs(): string
  • Returns string

Methods