POST request to it whenever a relevant event is triggered.
Setting up a webhook
To get started, use the Create webhook endpoint to register a webhook URL (must be HTTPS and not an IP).Webhook events
We deliver every event type to each active webhook in your account.Webhook headers
Every webhook delivery includes the following HTTP headers:Receiving webhooks
When an event occurs, we send aPOST request to your registered URL. The webhook payload follows the same schema as the Event resource:
data field is always empty. Use resource.id to fetch the resource and get its latest state. See Events for the full list of event types.
Your endpoint should return a 2xx status code within 15 seconds to acknowledge receipt. Any other status code, timeout, or connection error is treated as a failed delivery and will be retried. The maximum time we’ll wait for a response is 25 seconds (5s connect + 15s read + 5s write).
CSRF protection
If you use Rails, Django, or another web framework, your site might automatically check that everyPOST request contains a CSRF token. This is an important security feature, but it can also prevent your site from processing legitimate webhook events. If so, you may need to exempt your webhook route from CSRF protection.