How to check the webhook?

Test your webhook on the server and locally

In order to receive incoming webhooks, a public IP address / host is required to be accessible from the Internet. This way the Whapi.Cloud server will be able to make a call to your server at the specified address and deliver the incoming webhook.

Server configuration

  1. Whapi.Cloud does not accept webhooks that aren’t HTTPS;

  2. Your endpoint needs to accept a POST/PUT/PATCH/DELETE;

How to test Webhook functionality?

To check and test Webhook and make sure that the server is sending data, we offer you the easiest and fastest option - Webhook simulation.

If you're unsure where to start, consider exploring platforms like webhook.site:

  1. You get a unique link;

  2. Paste it in the channel settings;

  3. See how notifications are caught, what format they are in. This will help to process them in the script.

How to test Webhook locally?

When developing a WhatsApp bot, you might want to test it locally before deploying it to a server.

The simplest way to do this is to use tools like Ngrok, which creates a secure tunnel to your localhost, allowing you to provide access to your local server from the internet.

Download Ngrok from the official website and extract it. Open the terminal and navigate to the folder where Ngrok is stored. Run ./ngrok http PORT_NUMBER, replacing PORT_NUMBER with the port your Express server is running on locally. Now you should have a public URL that you can use as a URL for your webhook.


Last updated