Webhooks and HMAC
Learn how to receive secure instant notifications upon phone number verification.
The Webhooks are the fastest and most secure way to know that a user has successfully verified without the need for Polling.
When the user sends the message and it is successfully matched, our system sends a POST request to a URL that you specify in advance in your project settings.
Webhook Security (HMAC Signature)
To ensure that requests are truly coming from our servers and are not fake attacks, we sign every request using the HMAC-SHA256 algorithm.
1. Go to project settings and generate a Webhook Secret.
2. An encrypted signature will be attached in the request Header named x-webhook-signature.
3. You must calculate the signature on your server using the same Secret of yours and compare it to the sent signature.