whatsapp-api-js - v5.2.0
    Preparing search index...

    Class WhatsAppAPIFailedToVerifyTokenError

    Thrown when the verification token doesn't match from the request

    The verify_token in the request doesn't match the one provided on initialization. Either they are hacking you, or your Webhook Verify Token is invalid.

    Make sure you provided the correct verify token on initialization. It 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
    });

    It might also be possible you didn't provide the correct request params for the verification token (hub.verify_token). If you are using a middleware and this seems to be the case, consider opening an issue on GitHub.

    Hierarchy (View Summary)

    Index

    Properties

    Accessors

    Methods

    Properties

    httpStatus: number

    The HTTP status code of the error

    Accessors

    • get docs(): string

      Returns string

    Methods