---
title: "Replay a delivery"
method: POST
path: "/v1/webhooks/{id}/deliveries/{deliveryId}/replay"
tags: ["Webhooks"]
---

# Replay a delivery

`POST /v1/webhooks/{id}/deliveries/{deliveryId}/replay`

## Request

- Base URL: `https://api.sendora.se`
- URL: `https://api.sendora.se/v1/webhooks/{id}/deliveries/{deliveryId}/replay`
- Auth: HTTP bearer

Queues the event for delivery again, whatever its state, with the same payload and a fresh attempt count.

## Path parameters

- `id` string, uuid, required
- `deliveryId` string, uuid, required

## Response `202`

One event on its way to the webhook, retried with backoff until delivered or dead.

- object: One event on its way to the webhook, retried with backoff until delivered or dead.
  - `deliveryId` string, uuid, required
  - `event` 'delivered' | 'bounced' | 'deferred' | 'spam_complaint' | 'unsubscribed' | 'cap_warning' | 'cap_reached' | 'inbound' | 'inbound_cap_warning' | 'inbound_cap_reached', required
  - `messageId` string, uuid, nullable, required: Null for an event about usage rather than a message.
  - `inboundMessageId` string, uuid, nullable, required: The received message an inbound event is about; null for every other event.
  - `status` 'pending' | 'delivered' | 'dead', required: pending is waiting for its next attempt; dead gave up and can be replayed.
  - `attempts` integer, required
  - `nextAttemptAt` string, date-time, nullable, required: When the next attempt is due, while pending.
  - `lastStatusCode` integer, nullable, required: The HTTP status the endpoint last answered.
  - `lastError` string, nullable, required: Why the last attempt failed, when it did.
  - `deliveredAt` string, date-time, nullable, required
  - `createdAt` string, date-time, required

## Other responses

- `401`: The key is missing, malformed or revoked.
- `403`: The key is of the other kind, or a connected app may not do this here: it is not for connections, the connection may only read here, or it is for test servers only.
- `404`: No such webhook or delivery of this server.

---

[API](https://skmtc.dev/sendora/apis/sendora-api.md) · [All operations](https://skmtc.dev/sendora/apis/sendora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sendora/apis/sendora-api/revisions/72efbbb34b64?raw)
