Business help
How do I set up and verify webhooks?
How to add a webhook endpoint, verify its signature, and read a failed delivery.
Last reviewed:
Availability and account features depend on your location and account. Check the options shown in your account or contact our team .
A webhook sends your systems a signed request whenever an event you subscribe to happens on your account.
Who can do this: Any team member whose role includes the Developers area.
-
Add an endpoint
Go to Settings, Developers, Webhooks and select Add endpoint. You will need an HTTPS address that can receive and verify a signed request.
-
Choose what it subscribes to
Pick the events you want delivered to that endpoint.
-
Verify deliveries
Every delivery is signed with your signing secret. Compute a hash of the raw request body and compare it with the signature header before trusting the payload.
Verify against the raw request body, not a copy you have parsed and re-encoded. Re-serialising the body changes the bytes, and the signature will no longer match. This is the most common cause of a signature that “never matches”.
If a delivery fails
We retry a failed delivery with increasing delays for 24 hours, then stop. Use Send test event to trigger a delivery on demand, and Pause an endpoint while you fix it rather than deleting it.
Rolling your signing secret
Rolling the secret replaces it immediately. Anything still checking against the old one will start failing, so plan the change with whoever maintains the endpoint.