Aller au contenu

List the most recent deliveries of an endpoint, newest first.

GET
/v1/webhooks/endpoints/{id}/deliveries
curl --request GET \
--url https://api.asap.cool/v1/webhooks/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/deliveries \
--header 'Authorization: Bearer <token>'
id
required
string format: uuid

Endpoint identifier.

Recent deliveries (max 50).

Media typeapplication/json
Array<object>

Public projection of a delivery.

object
attempts
required

POST attempts made so far.

integer format: int32
created_at
required

Creation timestamp (RFC 3339).

string
event_id
required

Stable event id (the delivered envelope id).

string format: uuid
event_type
required

Event type token.

string
id
required

Delivery identifier.

string format: uuid
last_error

Last transport or HTTP status error, if any.

string | null
next_attempt_at

Next retry due time (RFC 3339), absent once terminal.

string | null
payload
required

JSON body that was (or will be) sent.

status
required

pending, succeeded or failed.

string

Example generated

[
{
"attempts": 1,
"created_at": "example",
"event_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"event_type": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"last_error": "example",
"next_attempt_at": "example",
"payload": "example",
"status": "example"
}
]

No active org.

Media typeapplication/json

Generic error body returned by API handlers when they fail. code is a stable machine-readable token; message is human-friendly and meant for surfacing to end users.

object
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string

Example generated

{
"code": "example",
"field": "example",
"message": "example"
}

Missing webhooks:read scope.

Media typeapplication/json

Generic error body returned by API handlers when they fail. code is a stable machine-readable token; message is human-friendly and meant for surfacing to end users.

object
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string

Example generated

{
"code": "example",
"field": "example",
"message": "example"
}

Endpoint not found or cross-org.

Media typeapplication/json

Generic error body returned by API handlers when they fail. code is a stable machine-readable token; message is human-friendly and meant for surfacing to end users.

object
code
required

Stable machine token (e.g. invalid_credentials).

string
field

Offending request field for validation errors, when known.

string | null
message
required

Human-readable message.

string

Example generated

{
"code": "example",
"field": "example",
"message": "example"
}