# Retries and replay

What happens when your endpoint is down, and how to get the events you missed.

## What counts as delivered

A delivery succeeds when your endpoint answers with any `2xx` status within 10 seconds. A non-2xx status, a timeout or a connection error is a failure, and the event is sent again.

Redirects are not followed: a `3xx` is a failure like any other. Answer from the URL you registered.

Delivery is at least once. Make your handler safe to run twice for the same `id`. The `id` stays the same on every retry and every replay of an event.

## Retry schedule

Each endpoint gets its own delivery of each event, with its own retries. A failing endpoint does not delay or repeat deliveries to your other endpoints.

A failed delivery is tried 12 times in all, over just under 3 days:

| Try | When |
| --- | --- |
| 1 | Immediately |
| 2 | 5 seconds after try 1 |
| 3 | 5 minutes after try 2 |
| 4 | 30 minutes after try 3 |
| 5 | 2 hours after try 4 |
| 6 | 5 hours after try 5 |
| 7 to 12 | Every 10 hours |

The last try is about 68 hours after the first. If it fails too, the delivery is marked failed and is not sent again by itself. You can [replay it](#replay) for 30 days.

## When an endpoint keeps failing

If every delivery to an endpoint has failed for 3 days, we disable the endpoint and email your workspace's owners and admins. The dashboard shows it as disabled by us.

Events keep being recorded for it while it is disabled, and nothing is lost: once your server is back, enable the endpoint again in the dashboard (or `PATCH /api/v1/webhook-endpoints/{id}` with `"status": "active"`) and replay what it missed. The dashboard sends a test event first and then offers the replay.

An endpoint you disable yourself is different: it receives nothing, and no events are recorded for it while it is off.

## Replay

Undelivered events are kept for 30 days and can be sent again in two ways.

**One delivery.** From the dashboard's delivery list, or with `POST /api/v1/webhook-endpoints/deliveries/{id}/replay`. The event goes again to that endpoint only, with the same `id`. The call answers `202`: the replay is queued, not delivered yet.

**Everything that failed since a time.** Use Replay failed since in the delivery list, or `POST /api/v1/webhook-endpoints/{id}/replay` with a `since` time within the last 30 days:

```json title="POST /api/v1/webhook-endpoints/{id}/replay"
{ "since": "2026-11-20T00:00:00Z" }
```

It answers `202` with `queued` and `remaining`. One call queues at most 1,000 deliveries, oldest first; call again while `remaining` is above 0.

A replay answers `422 not_replayable` when the endpoint is disabled (enable it first), when the delivery is a test event, or when the event is older than 30 days.

## Send a test event

Send a sample event to an endpoint from the dashboard, or with `POST /api/v1/webhook-endpoints/{id}/test` and an `event_type`:

```json title="POST /api/v1/webhook-endpoints/{id}/test"
{ "event_type": "invoice.paid" }
```

The sample is signed like any delivery and carries `"test": true`. It reads and changes no billing data, does not count toward disabling the endpoint, and works on a disabled endpoint, so you can check your server before you enable it again. The reply says whether it was delivered, with the status code and response time. A test event is sent once and never retried or replayed.
