List a webhook endpoint's deliveries
const url = 'https://example.com/v1/webhook-endpoints/example/deliveries?status=pending&limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/webhook-endpoints/example/deliveries?status=pending&limit=25' \ --header 'Authorization: Bearer <token>'Newest first. Each delivery carries the event it delivers.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The webhook endpoint id.
Query Parameters
Section titled “Query Parameters”pending: waiting for its next attempt. delivered: the endpoint answered 2xx. failed: every attempt failed, or the endpoint was unregistered first; redeliver queues it again.
Only deliveries with this status.
1..100. Default 25.
Opaque cursor from a prior response. Absent → first page.
Responses
Section titled “Responses”Page of deliveries.
object
object
object
Event id, also sent as the webhook-id header; the same on every retry.
object
A finished top-level run: its identity and outcome, never its input or output. Field names match GET /v1/runs/{runId}.
object
RunId.
Why the run failed or was cancelled; null when it completed.
object
object
pending: waiting for its next attempt. delivered: the endpoint answered 2xx. failed: every attempt failed, or the endpoint was unregistered first; redeliver queues it again.
HTTP status of the last attempt; null when it got no response.
Why the last attempt failed (timeout, connection-refused, url-refused, …).
Example
{ "data": [ { "event": { "type": "run.finished", "data": { "run": { "status": "completed" } } }, "status": "pending" } ]}Unknown status.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}No endpoint with that id.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}