Skip to content
cascadehook.docs
API referenceDeliveries

Replay a completed delivery

Explicit human approval required. Query parameters are rejected. Only succeeded/failed deliveries with a ready endpoint can be replayed. expected_cycle is the current delivery cycle. Same delivery/from-cycle returns its first receipt; stale cycle conflicts. Preserves Webhook-Id, so receiver deduplication may skip business work.

POST
/v1/deliveries/{delivery_id}/replay

Explicit human approval required. Query parameters are rejected. Only succeeded/failed deliveries with a ready endpoint can be replayed. expected_cycle is the current delivery cycle. Same delivery/from-cycle returns its first receipt; stale cycle conflicts. Preserves Webhook-Id, so receiver deduplication may skip business work.

Authorization

projectAPIKey
headerAuthorizationBearer <ch_dev_ or ch_live_ project API key>

Read CASCADEHOOK_API_KEY from the local environment. Never print keys or headers. Scope is the project selected when the key was created.

Path Parameters

delivery_id*string
Formatuuid

Request Body

application/json
  1. body
expected_cycle*integer
Range0 <= value <= 2147483647

Response Body

Immutable replay acceptance receipt; inspect current delivery state separately.

application/json
  1. response
id*string
Formatuuid
delivery_id*string
Formatuuid
from_cycle*integer
Range0 <= value
cycle*integer
Range0 <= value
created_at*string
Formatdate-time
retry_deadline*string
Formatdate-time
Example Request
curl -X POST 'https://api.cascadehook.com/v1/deliveries/497f6eca-6276-4993-bfeb-53cbbbba6f08/replay' \  -H 'Content-Type: application/json' \  -d '{  "expected_cycle": 0}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "delivery_id": "9892f438-d31c-4ff2-bc84-146525b292ff",  "from_cycle": 0,  "cycle": 0,  "created_at": "2019-08-24T14:15:22Z",  "retry_deadline": "2019-08-24T14:15:22Z"}