Security & Sync/Webhooks & HMAC Security
1 min read
Webhooks & HMAC Security
Learn how to receive secure, real-time notifications when a phone number is verified.
Webhooks are the fastest and most secure way to know that a user has successfully verified without needing to Poll.
When the user sends the message and it is matched successfully, our system sends a POST request to a URL you define in your project settings.
Webhook Security (HMAC Signature)
To ensure requests are genuinely coming from our servers and not spoofed, we sign every payload using HMAC-SHA256.
1. Go to project settings and generate a Webhook Secret.
2. A cryptographic signature will be attached in the request header as x-webhook-signature.
3. On your server, you must compute the signature using your Secret and the raw payload, and compare it with the sent signature.
Integration Code (SDKs)