Skip to content
cascadehook.docs
API referenceDeliveries

Read current delivery state

succeeded confirms receiver acknowledgement, not downstream business completion. pending/leased are not terminal. Inspect attempts and terminal_reason for failures.

GET
/v1/deliveries/{delivery_id}

succeeded confirms receiver acknowledgement, not downstream business completion. pending/leased are not terminal. Inspect attempts and terminal_reason for failures.

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

Response Body

Read current delivery state

application/json
  1. response
id*string
Formatuuid
project_id*string
Formatuuid
event_id*string
Formatuuid
endpoint_id*string
Formatuuid
state*DeliveryState
Value in"pending""leased""succeeded""failed""canceled"
attempt_count*integer
Range0 <= value
cycle*integer
Range0 <= value
cycle_started_at*string
Formatdate-time
retry_deadline*string
Formatdate-time
next_attempt_at*|
Formatdate-time
terminal_reason*string|null
active_attempt_id*|
Formatuuid
active_attempt_started_at*|
Formatdate-time
lease_expires_at*|
Formatdate-time
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X GET 'https://api.cascadehook.com/v1/deliveries/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7",  "endpoint_id": "e9ce0d4f-d433-423d-9497-4c000544106c",  "state": "pending",  "attempt_count": 0,  "cycle": 0,  "cycle_started_at": "2019-08-24T14:15:22Z",  "retry_deadline": "2019-08-24T14:15:22Z",  "next_attempt_at": "2019-08-24T14:15:22Z",  "terminal_reason": "string",  "active_attempt_id": "b78ef144-8036-4e06-8451-5c86b5e7eb8e",  "active_attempt_started_at": "2019-08-24T14:15:22Z",  "lease_expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}