Create Webhook Handler
Create a handler
Setup an HTTPS endpoint function that:
- Handles POST request with a JSON payload
- Returns a successful status code (2xx)
Retries
If event delivery failed, meaning the response from your endpoint did not respond with a status code of 2XX, we will retry delivery up to 24 hours with exponential backoff.
After 24 hours, the event will be marked as failed and will not be retried.
In the case where the webhook is disabled, pending events for the webhook will be skipped. These events will also be marked as failed after 24 hours.
Sample handler
Testing your handler
Start your web server
Then send a sample event via curl
and verify the result in your application logic.
Next steps
Was this page helpful?