Get your API key
API reference

Deliveries

Re-deliver a stored message to its webhook. See Delivery & reliability for a guided walk-through.

Auth: Session token · Base URL: https://api.mailkite.dev

Endpoints

Each row expands to its request and response schema. The address bar follows along, so any endpoint can be linked to directly.

POST /api/deliveries/:id/retry Re-deliver a stored message to its webhook.

Re-deliver a stored message to its webhook.

Response body

retry-delivery-response.json

POST /api/deliveries/:id/retry — the outcome and the NEW delivery row the retry appended (history is append-only; the original row is untouched).

FieldTypeNotes
ok req booleanThe endpoint accepted the redelivery.
status req integerHTTP status the endpoint returned (0 when the request failed before a response).
delivery req deliveryThe new delivery row recording this retry.
delivery.id req stringDelivery id (dlv_…).
delivery.message_id req stringThe message this delivery carries (msg_…).
delivery.route_id req stringThe route whose webhook was targeted (rte_…).
delivery.url req stringThe webhook URL the body was POSTed to.
delivery.status req "pending" · "delivered" · "failed" · "paused"Current state of this delivery.
delivery.attempts req integerHow many attempts this delivery has made.
delivery.last_status_codeinteger · nullHTTP status of the most recent attempt.
delivery.next_retry_atinteger · nullWhen the auto-retry cron will re-attempt a failed delivery; null when nothing is due, in Unix epoch milliseconds (UTC); null when it has never happened.
delivery.retry_attemptsintegerHow many automatic retries have been scheduled so far.
delivery.created_at req integerWhen the delivery was created, in Unix epoch milliseconds (UTC).
delivery.updated_at req integerWhen the delivery last changed, in Unix epoch milliseconds (UTC).