Webhooks
Verify Events
There are two ways to ensure events you receive are from Dojah.
- IP Whitelisting
- Signature validation
With this method, you only allow certain IP addresses to access your webhook URL while blocking out others. Dojah will only send webhooks from these IP addresses:
- 20.112.64.208
Events sent from Dojah carry the x-dojah-signature header. The value of this header is a HMAC SHA256 signature of the event payload signed using your secret key. Verifying the header signature should be done before processing the event:
Javascript
Was this page helpful?