Skip to main content

Redeliver a Delivery

POST/v1/webhook-endpoints/{id}/deliveries/{deliveryId}/redeliver

Send 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​

NameInRequiredType / constraintsDescription
idpathYesstringThe callback endpoint ID, whe_...
deliveryIdpathYesstringThe delivery to resend, wd_..., from List Deliveries

No request body.

Response​

StatusDescription
202Accepted — the new delivery is queued
4xxClient 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​

Statusdetails.reasonMeaning
409delivery_in_progressThe original delivery has not finished (pending / queued); it keeps retrying on its own
409endpoint_not_activeThe endpoint is not active; re-enable or verify it first
409redelivery_in_progressA 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-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.