Webhooks
Retries & replay
Retries and failures#
An attempt fails on any non-2xx response, or on no response at all (timeout, DNS, TLS, connection refused). The next attempt is scheduled at:
| Attempt | Sent |
|---|---|
| 1 | immediately |
| 2 | +1 minute |
| 3 | +5 minutes |
| 4 | +30 minutes |
| 5 | +2 hours |
| 6 | +6 hours |
| 7 | +12 hours |
| 8 | +24 hours |
Eight attempts spread over roughly 45 hours: an endpoint that is down for a working day still receives everything once it comes back. After the eighth failure the delivery is marked dead, the endpoint's consecutive_failures count goes up and ekash alerts its own team. A successful delivery resets the counter.
Nothing is dropped silently. A dead delivery stays in the log:
GET /v1/webhooks/{id}/deliveries?limit=25
POST /v1/webhooks/{id}/deliveries/{deliveryId}/retryEach row carries the attempt count, the status code you returned, the first 500 characters of your response body, the latency, and next_attempt_at while a retry is scheduled. A retry re-sends the original payload — the snapshot from when the event happened — with the attempt count reset.
Disabling an endpoint (PATCH … {"enabled": false}) stops deliveries without deleting it. Anything queued while it is disabled is marked failed rather than burning its retry budget, and can be retried by hand after you enable it again. Re-enabling also clears consecutive_failures.
Replay: GET /v1/events#
GET /v1/events?type=payment.sent&since=2026-09-22T09:00:00Z&limit=50
Authorization: Bearer ek_live_…{
"data": [
{ "id": "evt_…", "type": "payment.sent", "created_at": "2026-09-22T09:30:00Z", "data": { … } }
],
"next_cursor": "MTc1ODUzMzQwMDpldnRf…",
"has_more": true
}Every row is exactly what a delivery carries, so the handler you already wrote can process a replay unchanged. This is the recovery path after an outage: page from the last event you processed and apply what you missed. Nothing has to be re-delivered for that to work.
Notes:
- Newest first, cursor-paginated. Pass
next_cursorback as?cursor=; the cursor is opaque. sinceis an RFC 3339 UTC timestamp.- Events are the record of what happened, not of what was delivered: an event appears here whether or not any endpoint received it, and appears once no matter how many endpoints it went to.
- The history starts when you register your first endpoint. Register one before you rely on it.
- History is kept for 90 days.
Scope: events:read.