# Redeliver a Delivery

Canonical: https://docs.bluehola.com/docs/webhooks/post-v1-webhook-endpoints-id-deliveries-deliveryid-redeliver
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--post">POST</span><code class="endpoint-path">/v1/webhook-endpoints/{id}/deliveries/{deliveryId}/redeliver</code></div>

Send a finished (`delivered` or `failed`) delivery again. A new delivery record is created and returned; the original is kept.

:::note[Authentication]

Send `Authorization: Bearer <API_KEY>` in the request headers. Which resources an API Key can reach is determined by its current authorization scope.

:::

## Request

Base URL: `https://api.bluehola.com`

### Parameters

| Name | In | Required | Type / constraints | Description |
| --- | --- | --- | --- | --- |
| `id` | path | Yes | string | The callback endpoint ID, `whe_...` |
| `deliveryId` | path | Yes | string | The delivery to resend, `wd_...`, from [List Deliveries](get-v1-webhook-endpoints-id-deliveries.md) |

No request body.

## Response

| Status | Description |
| --- | --- |
| `202` | Accepted — the new delivery is queued |
| `4xx` | Client error |

### 202 response schema

The new delivery record, in the same shape as an item of [List Deliveries](get-v1-webhook-endpoints-id-deliveries.md); its `redeliveredFrom` is the original delivery's ID.

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "endpointId": {
      "type": "string"
    },
    "eventId": {
      "type": [
        "string",
        "null"
      ]
    },
    "eventType": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "queued",
        "delivered",
        "failed"
      ]
    },
    "attempts": {
      "type": "integer"
    },
    "responseStatus": {
      "type": [
        "integer",
        "null"
      ]
    },
    "responseBodyPreview": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastError": {
      "type": [
        "string",
        "null"
      ]
    },
    "nextRetryAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "redeliveredFrom": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}
```

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

### Errors

| Status | `details.reason` | Meaning |
| --- | --- | --- |
| `409` | `delivery_in_progress` | The original delivery has not finished (`pending` / `queued`); it keeps retrying on its own |
| `409` | `endpoint_not_active` | The endpoint is not `active`; [re-enable](post-v1-webhook-endpoints-id-enable.md) or [verify](post-v1-webhook-endpoints-id-verify.md) it first |
| `409` | `redelivery_in_progress` | A redelivery of the same event is already in progress |
| `404` | — | The delivery does not belong to the endpoint in the path |

## Notes

Use it to recover events your endpoint missed during an outage — automatic retries give up after about 38.6 hours (see [Webhook Integration](../guides/webhook-integration.md)). `202` only means the redelivery is queued; check the result in [List Deliveries](get-v1-webhook-endpoints-id-deliveries.md).

- The redelivery is sent to the endpoint's **current** URL and signed with its **current** secret, so it verifies even after a secret rotation.
- **De-duplication:** under the connection protocol, the redelivery carries the **same `Webhook-Id`** as the original, so your receiver can de-duplicate it. Under the default scheme `X-Delivery-Id` is the new delivery's ID, so de-duplicate on the event content instead (for example the message `id` / `wamid`) if you redeliver an event your endpoint may already have processed.
- The original delivery record is never modified.
