type in your handler.
Where to configure your endpoint
Webhook endpoints are configured at the project level in the dashboard, under the top-level Webhooks page. A project-level endpoint receives events from all accounts under that project.Event taxonomy
Surge can send the following events to your webhook endpoint depending on the subscriptions you configure:Envelope shape
Every webhook payload has the same outer envelope:data object varies by event type. See the individual event pages for their payload shapes.
Retries and timeouts
- Surge expects a
2xxresponse within the request timeout. If your endpoint doesn’t respond in time or returns a non-2xx status, Surge retries with exponential back-off. - Your handler should be idempotent. Surge may deliver the same event more than once.
- Return
200quickly; enqueue work for slow processing.