Read a webhook delivery
Auth: Bearer key with no domain scope.
bearerAuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
deliveryId*stringAn opaque, type-prefixed id.
include?stringComma-separated expansions to add: payload (the body that was posted, frozen at enqueue, returned by default); attempts (each attempt's status code or error and duration, oldest first, returned by default).
fields?stringComma-separated top-level keys to return in place of the defaults. id always comes back. Valid: id, endpoint_id, event_type, status, attempt_count, last_status_code, last_error, next_attempt_at, succeeded_at, expires_at, message_id, created_at, payload, attempts.
One delivery, with its payload and attempts.
application/json- response
id?stringOpaque id, prefixed whd_. The X-Webhook-Id header carries it.
endpoint_id?stringThe endpoint it was posted to.
event_type?stringThe X-Webhook-Event it carries.
status?stringpending while attempts remain, succeeded on a 2xx, exhausted once retrying stops. failed is reserved and not written.
"pending""succeeded""failed""exhausted"attempt_count?integerAttempts made so far.
last_status_code?|The receiver's last HTTP status, or null when it never answered.
last_error?|Why the last attempt failed without a status, such as a timeout.
next_attempt_at?|When the next attempt is due. Null unless pending.
succeeded_at?|ISO 8601 timestamp of the 2xx, or null.
expires_at?stringWhen retrying stops: 24 hours after the delivery was queued.
message_id?|The sent message the event is about, or null for an event with no single message.
created_at?stringISO 8601 timestamp of when it was queued.
payload?The body that was posted, frozen at enqueue: a retry sends the same one. In the default on a single read, with include=payload on the list. An address.received body loses text and html when the message is purged.
attempts?array<>Each attempt, oldest first: the status code or error and how long it took. In the default on a single read, with include=attempts on the list.
curl -X GET 'https://pouch.example.com/v1/webhook_endpoints/string/deliveries/string'{ "id": "string", "endpoint_id": "string", "event_type": "string", "status": "pending", "attempt_count": 0, "last_status_code": 0, "last_error": "string", "next_attempt_at": "string", "succeeded_at": "string", "expires_at": "string", "message_id": "string", "created_at": "string", "payload": {}, "attempts": [ { "id": "string", "attempt": 0, "status_code": 0, "error": "string", "duration_ms": 0, "created_at": "string" } ]}