Skip to content
Sendtier Docs
API reference

Get a delivery, its payload and ordered attempts

Source: OpenAPI (openapi/openapi.yaml).

curl -X GET "https://api.sendtier.example/webhook-deliveries/string" \  -H "Authorization: Bearer st_live_REPLACE_ME"
{  "id": "string",  "webhook_id": "string",  "event_id": "string",  "event_type": "email.queued",  "status": "pending",  "attempts": 0,  "next_attempt_at": "2019-08-24T14:15:22Z",  "last_status": 0,  "last_error": "string",  "created_at": "2019-08-24T14:15:22Z",  "payload": {},  "attempts_history": [    {      "attempt": 0,      "started_at": "2019-08-24T14:15:22Z",      "duration_ms": 0,      "response_status": 0,      "response_body": "string",      "error": "string"    }  ]}
GET
/webhook-deliveries/{delivery_id}

Authorization

headerAuthorizationBearer <token>

API key: st_live_... or st_test_...

Path Parameters

delivery_id*string

Response Body

Delivery detail with attempts in ascending attempt order.

application/json
  1. response
id*string
webhook_id*string
event_id*string
event_type*EventType
Value in"email.queued""email.sent""email.delayed""email.delivered""email.bounced""email.complained""email.opened""email.clicked""email.failed"
status*WebhookDeliveryStatus
Value in"pending""succeeded""failed"
attempts*integer
Formatint32
next_attempt_at*string
Formatdate-time
last_status?integer
Formatint32
last_error?string
created_at*string
Formatdate-time
payload*
attempts_history*array<>