Redeliver a webhook deliveryMenu

Redeliver a webhook delivery

POST/v1/webhooks/deliveries/{deliveryId}/redeliver

Requires an API key with the webhooks:write scope. About keys and scopes

Works with integration and partner keys, not agent keys.

A repeat without a key does it again; send Idempotency-Key and a retry within 24 hours replays the first response. About idempotency

Re-queues a failed delivery as the same event (same X-Webhook-Event-Id), and returns it to watch. 404 for a delivery this workspace does not have; 409 CONFLICT for one that is not failed or whose body is no longer kept. A redelivery to a paused or disabled webhook waits until it is active.

Path parameters

deliveryIdstringrequired

The delivery's id.

uuid

Header parameters

Kirora-Workspacestringoptional

Partner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.

pattern ^[A-Za-z0-9._:-]{1,128}$

Idempotency-Keystringoptional

Makes a retry safe: a repeat with the same key and body within 24 hours gets the first response again, with Idempotency-Replay: true. The same key with another request is 409 IDEMPOTENCY_KEY_REUSED; while the first is still running, 409 IDEMPOTENCY_KEY_IN_USE; after an unsafe first request failed or never returned, 409 IDEMPOTENCY_KEY_OUTCOME_UNKNOWN. Use a new key, such as a UUID, for each new request.

8–255 characters

Returns

Returns 202 Accepted with a WebhookDelivery in data. It can also return 409 Conflict; see the statuses below. Otherwise returns an error; Errors lists every code and which to retry.

  • 202 AcceptedThe delivery, queued again.
  • 409 ConflictThe request conflicts with current state — a duplicate unique value, or a resource whose status does not allow this operation.
idstringrequired

uuid

webhookIdstringrequired

The webhook (endpoint) it was sent to.

uuid

eventIdstringrequired

The event; the same across retries.

uuid

eventTypestringrequired

The event type, such as message.delivered.

one of contact.created, contact.unsubscribed, contact.consent_changed, form.submitted, campaign.sent, journey.enrolled, message.delivered, message.bounced, message.complained, message.opened, message.clicked, message.failed, message.skipped, message.sent, journey.action_reached, webhook.test

attemptintegerrequired

Which attempt this was, starting at 1.

statusstringrequired

one of pending, delivered, failed

nextAttemptAtstring | nullrequired

When a pending delivery is tried next. Null once delivered or failed, and while its webhook is paused or disabled: it then waits until the webhook is active.

date-time

responseStatusinteger | nullrequired

The HTTP status your endpoint returned; null if it did not respond.

failureReasonstring | nullrequired

Why the attempt failed: HTTP 500 for an error reply; with no reply, the network error, such as fetch failed: ECONNREFUSED, fetch failed: ENOTFOUND, fetch failed: CERT_HAS_EXPIRED or No reply within 5 seconds.

requestBodystring | nullrequired

The exact body sent, while the delivery is pending or failed; null once delivered, when it is dropped.

responseBodystring | nullrequired

The first 1 KB of the endpoint's last reply.

createdAtstringrequired

date-time

deliveredAtstring | nullrequired

When your endpoint accepted it.

date-time

Headers on 202 Accepted

Idempotency-Replaystringoptional

true when this is the stored response to an earlier request with the same key.

one of true