Skip to main content
POST
Resend a delivery
Issues a new delivery of the same event to the same endpoint, with its own id and an incremented resend_seq. The source delivery is left untouched, preserving the full attempt history. Only deliveries in a terminal status (DELIVERED or FAILED) can be resent, and the endpoint must be active. Resending a PENDING or SENDING delivery returns 409 Conflict with code not_resendable; resending to a disabled or archived endpoint returns 409 Conflict with code endpoint_not_active. The new delivery starts as PENDING and is dispatched on the normal delivery path. It can take up to 30 seconds to be picked up.
For replay and consumer-dedup patterns, see the Webhooks guide: Resend a Delivery.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key within 24 hours replays the original response (Idempotent-Replayed: true).

Maximum string length: 255

Path Parameters

delivery_id
string<uuid>
required

The webhook delivery's id.

Response

Newly created delivery

One attempt to deliver a webhook event to an endpoint, with its status and response.

attempt_count
integer

Number of delivery attempts made so far

Example:

1

created_at
string<date-time>

When the delivery record was created

Example:

"2027-01-15T10:30:00Z"

delivered_at
string<date-time>

When the delivery was successfully completed

Example:

"2027-01-15T10:30:00Z"

error_code
string

Stable, machine-readable classification of the last failed attempt, e.g. consumer_response_timeout, consumer_4xx, consumer_5xx, rate_limited, gone (omitted when none)

Example:

"consumer_response_timeout"

event_type
string

The event type (e.g. balance.credited)

Example:

"balance.credited"

id
string<uuid>

The id of the delivery. Use it in delivery_id paths to retry or resend it.

Example:

"1c8d3e5f-2a47-4b96-8e03-d5f7a9b1c2e4"

last_attempt_at
string<date-time>

When the last attempt was made

Example:

"2027-01-15T10:30:00Z"

last_error
string

Error message from the last attempt (network errors, timeouts)

Example:

"connection timed out after 10s"

last_response_body
string

Response body from the last attempt (truncated to 4 KB)

Example:

"{\"received\":true}"

last_response_status
integer

HTTP status code from the last attempt

Example:

200

max_attempts
integer

Maximum attempts before marking as FAILED

Example:

8

next_attempt_at
string<date-time>

When Scrip will try the delivery next. Omitted once the delivery is DELIVERED or FAILED.

Example:

"2027-12-31T23:59:59Z"

resend_seq
integer

Manual-resend sequence: 0 = the original delivery, 1,2,... = manual resends

Example:

0

status
enum<string>

Delivery lifecycle status (PENDING waits for the next attempt, SENDING is in flight, DELIVERED succeeded, and FAILED is terminal when attempts run out or the endpoint was archived).

Available options:
PENDING,
SENDING,
DELIVERED,
FAILED
Example:

"DELIVERED"

updated_at
string<date-time>

When the delivery record was last updated

Example:

"2027-01-15T10:30:00Z"

webhook_endpoint_id
string<uuid>

The endpoint this delivery targets

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

webhook_event_id
string<uuid>

The webhook event that triggered this delivery

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"