Skip to content

List a webhook endpoint's deliveries

GET
/v1/webhooks/{id}/deliveries
curl --request GET \
--url 'https://api.emite.cr/v1/webhooks/example/deliveries?outcome=succeeded&limit=25' \
--header 'Authorization: Bearer <token>'

Every POST made to this endpoint in the last 30 days, newest first: each attempt of each delivery (retried until it succeeds or its window ends — then an expired record says so), the tests (isTest) and the redeliveries (redeliveryOf) — with what was sent (event), what came back (statusCode, responseExcerpt), why it failed (failure) and when it is tried again (nextAttemptAt). Paged by cursor: pass the previous page's nextCursor. A disabled endpoint still lists what it received; one that is not the company's, or was removed, answers 404 WEBHOOK_ENDPOINT_NOT_FOUND.

id
required
string
outcome
string
Allowed values: succeeded failed

Only the deliveries with this outcome; all of them when omitted.

cursor
string format: uuid

The nextCursor of the previous page; omitted for the first page.

limit
number
default: 25 >= 1 <= 100

How many per page, from 1 to 100.

A page of deliveries.

Media typeapplication/json
object
items
required

The deliveries of this page.

Array<object>
object
id
required

Identifier of this attempt — what sending it again takes.

string format: uuid
eventId
required

The event's id: the same in every attempt of one delivery, and in a redelivery.

string format: uuid
eventType
required

The event's type.

string
environment
required

The event's environment.

string
Allowed values: sandbox production
attempt
required

Which attempt of its delivery this was: 1 for the first, then each retry. A redelivery counts from 1 again. On an expired record, how many attempts were made (0 when it only ever waited for a paused endpoint).

number
isTest
required

Whether it was a webhook.test sent on request.

boolean
redeliveryOf
required

The delivery this one sent again, when a person asked for it; null otherwise.

string format: uuid
nullable
outcome
required

succeeded: the endpoint answered with a 2xx. failed: anything else.

string
Allowed values: succeeded failed
statusCode
required

The HTTP status the endpoint answered; null when it never answered.

number
nullable
failure
required

Why it failed, in the same terms as a test (url_invalid, timeout, tls, connection, http_status), or expired: its window ended without a success, so nothing was sent then and it is not tried again on its own — send it again from here. null when it succeeded.

string
nullable
Allowed values: url_invalid timeout tls connection http_status expired
failureDetail
required

The reason of url_invalid or the system code of a tls or connection failure; null otherwise.

string
nullable
responseExcerpt
required

The first 500 characters of what the endpoint answered; null when nothing.

string
nullable
durationMs
required

How long it took, in milliseconds.

number
nextAttemptAt
required

On a failed attempt, when the delivery is tried again on its own. null when it is not: it succeeded, it was the last attempt of its window, it is a test, or it waits for the paused endpoint.

string format: date-time
nullable
event
required

The event exactly as it was sent: the envelope, with its data.

object
key
additional properties
any
attemptedAt
required

When it was attempted.

string format: date-time
nextCursor
required

What to pass as cursor for the next page; null when this is the last one.

string format: uuid
nullable
Example
{
"items": [
{
"eventType": "invoice.accepted",
"environment": "sandbox",
"attempt": 1,
"outcome": "succeeded",
"statusCode": 200,
"failure": "url_invalid",
"failureDetail": "ECONNREFUSED",
"durationMs": 184
}
]
}