Redeliver a Delivery
POST
/v1/webhook-endpoints/{id}/deliveries/{deliveryId}/redeliverSend a finished (delivered or failed) delivery again. A new delivery record is created and returned; the original is kept.
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 |
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; its redeliveredFrom is the original delivery's ID.
{
"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.
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 or verify 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). 202 only means the redelivery is queued; check the result in List Deliveries.
- 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-Idas the original, so your receiver can de-duplicate it. Under the default schemeX-Delivery-Idis the new delivery's ID, so de-duplicate on the event content instead (for example the messageid/wamid) if you redeliver an event your endpoint may already have processed. - The original delivery record is never modified.