In cases where you are trying to add a webhook, but unable to verify the webhook kindly ensure that the webhook meets the following criteria:
The webhook URL has to be browsable OR has to be reachable via HEAD or POST i.e.
Leadsquared uses an HTTP HEAD request to check if the URL is accessible and reachable from our servers. It is a standard method used for fast link verification.
If you allow the HEAD method on your application, it can pass our verification test.
As a part of security verification and SSRF protection, we validate a webhook URL when configured. The method of verification is :
1. Make a HEAD request to the URL
2. Make a POST request to the URL with an empty request body
At least one of the above requests should give a 200 OK response to validate the webhook. After the webhook is validated it will start processing requests.
This means that the webhook had passed the validation test for the other account at the time of configuration.
If you are able to provide a 200 OK response during the time of configuration of the webhook, it should work fine.
