Skip to Content
Pouch
Webhook endpoints

Read a webhook delivery

GET
/v1/webhook_endpoints/{id}/deliveries/{deliveryId}

Auth: Bearer key with no domain scope.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

deliveryId*string

An opaque, type-prefixed id.

Query Parameters

include?string

Comma-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?string

Comma-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.

Response Body

One delivery, with its payload and attempts.

application/json
  1. response
id?string

Opaque id, prefixed whd_. The X-Webhook-Id header carries it.

endpoint_id?string

The endpoint it was posted to.

event_type?string

The X-Webhook-Event it carries.

status?string

pending while attempts remain, succeeded on a 2xx, exhausted once retrying stops. failed is reserved and not written.

Value in"pending""succeeded""failed""exhausted"
attempt_count?integer

Attempts 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?string

When 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?string

ISO 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.

Example Request
curl -X GET 'https://pouch.example.com/v1/webhook_endpoints/string/deliveries/string'
Example Response
{  "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"    }  ]}