Why verify signatures
Without verification, any server that discovers your webhook URL could send fake events. Inbox signs every webhook delivery with your signing secret so you can confirm it’s authentic before processing.How it works
Every webhook request includes anX-Inbox-Signature header with a timestamp and HMAC-SHA256 signature:
Getting your signing secret
- Go to Settings → Webhooks in your Inbox dashboard
- Click on a webhook configuration
- Copy the Signing secret
Verification steps
Code examples
Full handler example
Make sure you verify against the raw request body string, not a
re-serialized version. Parsing the JSON and re-serializing it may change
whitespace or key ordering, which will produce a different signature.
Common mistakes
Rotating your signing secret
You can rotate your signing secret at any time from Settings → Webhooks. When you rotate:- The old secret is immediately invalidated
- All subsequent deliveries use the new secret
- Update your verification code with the new secret before rotating, or accept a brief window of failed verifications