Skip to content
Documentation
Get started

Webhooks

List deliveries to a webhook endpoint

GET
/v1/webhook-endpoints/{webhookEndpointId}/deliveries
curl --request GET \
--url 'https://api.timbro.do/v1/webhook-endpoints/example/deliveries?limit=20' \
--header 'Authorization: Bearer <token>'

Returns what the gateway tried to deliver to this endpoint, newest first, with the endpoint’s own answer as a bounded excerpt.

webhookEndpointId
required
string
/^webhook_endpoint_[0-9a-hjkmnp-tv-z]{24,}$/

Webhook endpoint to operate on.

limit
integer
default: 20 >= 1 <= 100

Rows on one page.

cursor
string
>= 1 characters <= 512 characters

The nextCursor of the previous page. A cursor belongs to the list, tenant, mode, and filter set that minted it.

state
Array

Repeat the parameter to admit more than one state.

occurredAfter
string format: date-time

Admits the deliveries whose event happened at or after this instant.

occurredBefore
string format: date-time

Admits the deliveries whose event happened at or before this instant.

One page of deliveries for one webhook endpoint, newest first.

Media typeapplication/json
Response fields and codes

One page of deliveries for one webhook endpoint, newest first.

object
object
required
string
Allowed value: list
data
required
Array<object>

One attempted or pending HTTPS POST of one event to one webhook endpoint. The signing secret and the full destination response are never part of it.

object
id
required

Delivery identifier. A replay of the same event is a new one.

string
/^webhook_delivery_[0-9a-hjkmnp-tv-z]{24,}$/
object
required
string
Allowed value: webhook_delivery
eventId
required
Any of:

A Gateway event identifier.

string
/^event_[0-9a-hjkmnp-tv-z]{24,}$/
eventType
required

The retained event type, including events from earlier contracts.

string
>= 1 characters <= 128 characters
state
required
Any of:
string
Allowed value: pending
attemptCount
required

Attempts already spent.

integer
nextAttemptAt
required

When the next attempt is due. Meaningless once the state is terminal.

string format: date-time
lastStatusCode
required
Any of:
integer
resultCode
required
Any of:
Any of:
string
Allowed value: delivered
lastResponseExcerpt
required
Any of:
string
<= 256 characters
replayId
required
Any of:

The replay that queued this delivery.

string
/^webhook_replay_[0-9a-hjkmnp-tv-z]{24,}$/
occurredAt
required

When the event happened.

string format: date-time
createdAt
required

When this delivery was queued.

string format: date-time
hasMore
required

True when a further page follows this one.

boolean
nextCursor
required
Any of:
string
>= 1 characters
request-id
required
string

Identifies this request. Quote it when you contact support.