> ## Documentation Index
> Fetch the complete documentation index at: https://exchanger-api.iexexchanger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Find and retry a webhook delivery

> Check the outcome of a test webhook, identify a failed attempt, and queue the delivery again after the receiver is fixed.

Open the delivery history when a test webhook is missing or your handler returned an error. The event ID identifies what happened to the resource. The delivery ID identifies attempts to send that event to one URL.

## Find the receiver's HTTP response

Get the delivery ID from `result.deliveries[].id` in the [test webhook](https://exchanger-api.iexexchanger.com/en/guides/reliability/webhooks.md) response or look it up by event ID. Reading requires `public-api:webhooks:deliveries:read` or `public-api:webhooks:read`. Use the [signed HTTP request script](https://exchanger-api.iexexchanger.com/en/start/quickstart.md).

```bash theme={null}
node request.mjs GET '/api/v3/private/webhooks/deliveries?filter%5Bstatus%5D=failed&filter%5Bevent_type%5D=order.status_changed'
```

| Method and path | Where to look |
| - | - |
| `GET /api/v3/private/webhooks/events` | `result.events`. Filter by `status`, `event_type`, `resource_type`, `resource_id`, `correlation_id`, `created_from`, or `created_to`. |
| `GET /api/v3/private/webhooks/events/{event}` | `result.event`. Get a compact notification and all deliveries for an event UUID. |
| `GET /api/v3/private/webhooks/deliveries` | `result.deliveries`. Filter by `status`, `endpoint_id`, `event_id`, `event_type`, `correlation_id`, `created_from`, or `created_to`. |
| `GET /api/v3/private/webhooks/deliveries/{delivery}` | `result.delivery`. Find the receiver's HTTP response in `response.status`, elapsed time in `response.duration_ms`, the cause in `error.code`, the next attempt in `next_retry_at`, and up to 100 recent attempts in `attempts`. |

Send filters as `filter[name]`. Lists support pages and cursors. Keep filters and sort order unchanged while following a cursor. If you have only the ID you used to trace a write request, filter by `correlation_id` and match the results to your receiver logs.

## Decide whether to intervene

| Delivery status | What to do |
| - | - |
| `queued` | If `next_retry_at` is present, wait for the scheduled attempt. The record can also be waiting for its first send. |
| `sending` | An attempt is in progress. Read the delivery again after it finishes. |
| `succeeded` | The receiver acknowledged delivery with `2xx`. |
| `failed` | Check the latest attempt. Automatic retries ran out or the failure prevented an automatic retry. |

An event becomes `completed` when every delivery succeeds or no subscriptions match. If at least one delivery fails permanently, the event becomes `failed` after the remaining deliveries finish. In attempt history, `retry_scheduled` means another attempt is scheduled. `unknown` means the service could not record that attempt's outcome.

A network failure or HTTP `408`, `425`, `429`, or `5xx` response can trigger automatic retries. The standard delays after the first attempt are 60, 300, 900, and 3,600 seconds. For a receiver response of `429` or `503`, `Retry-After` in seconds or HTTP-date format can extend the standard delay. The header's delay is capped at 3,600 seconds. For a verified event you already stored, return `2xx` as you would on the first delivery.

The exchange can keep a delivery queued while automatic sending is switched off. If the queue stops moving, ask the operator to check dispatch. For a failed attempt, inspect `result.delivery.error.code`:

| Delivery error | Next step |
| - | - |
| `dns_unavailable` | The destination could not be resolved temporarily. Check DNS and the scheduled retry. |
| `unsafe_endpoint` | Verify that the HTTPS destination resolves only to public addresses. Fix the receiver configuration and send a test. |
| `endpoint_route_changed`, `endpoint_unavailable` | Check the current subscription URL and status. A delivery for a retired route cannot be redirected to the replacement URL. |
| `owner_api_disabled`, `api_disabled` | Ask the operator to restore API access before requesting a retry. |

The default retention period is 30 days from completion for `completed` and `failed` events and their delivery histories. The operator can change it. Keep the event IDs and processing outcomes you need for reconciliation in your own inbox.

## Queue the delivery again

1. For `401` or `403`, check the subscription secret, signature version, original body bytes, and clock against the [webhook verification rules](https://exchanger-api.iexexchanger.com/en/guides/reliability/webhooks.md). If you see `http_301` or `http_302`, update the subscription to the final URL and run a new test.
2. For a `failed` delivery, fix the receiver at the original URL and call `POST /api/v3/private/webhooks/deliveries/{delivery}/retry`. Use `public-api:webhooks:deliveries:retry` or `public-api:webhooks:write`. Resume a paused subscription. An attempt already scheduled for the future keeps its scheduled time.
3. Fetch the delivery again. A `200` from the retry API confirms that it returned the record. Look for `succeeded` to confirm acceptance by the receiver.

A manual retry keeps the same event ID and original route. If the URL changed or the subscription was revoked, configure the correct URL, send a new test, and reconcile the current resource through the API. A record with `retry_blocked_reason: "protocol_retired"` uses a retired delivery protocol. A retry attempt returns `409` and the reason in `error.details.reason`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.