Availability
For how webhooks work, refer to Webhooks.
Each webhook delivery carries a signature in the
X-Webhook-Signature header. Check it in your receiver before you process the event.
Verify the Signature
Each target has a signing secret. You get it when you create the target. The signature is an HMAC-SHA256 of the timestamp, a period, and the raw body, with the signing secret as the key. For all delivery headers, refer to Delivery Headers. To verify a delivery:- Read the
X-Webhook-Timestampheader and the raw request body. - Calculate
HMAC-SHA256(secret, timestamp + "." + body)and encode it as hexadecimal. - Compare
v1=<your value>with each comma-separated entry inX-Webhook-Signature. Use a constant-time comparison. - Reject the request if no entry matches, or if the timestamp is older than a few minutes.
- Send a
2xxresponse.