Skip to content

List Webhook Attempts

GET
/v0/webhooks/{webhook_id}/attempts
curl -s "https://api.yoagent.dev/v0/webhooks/whk_01je56wqswfmn9pgbc1wq8tjgq/attempts" \
-H "Authorization: Bearer $YOAGENT_KEY"

List a webhook’s delivery attempts, newest first: delivered, failed (with the URL’s status or why), or skipped by the organization’s per-minute limit (skipped); kept 7 days.

webhook_id
required
Webhook Id
string
/^whk_[0-7][0-9a-hjkmnp-tv-z]{25}$/
limit
Limit
integer
default: 20 >= 1 <= 100

How many items a page holds.

page_token
Page Token
Any of:

The next_page_token of the previous page

string

The previous page’s next_page_token, for the page after it; omitted: the first page.

Successful Response

Media typeapplication/json
WebhookAttemptList

A page of a webhook’s delivery log, newest first.

object
count
required
Count
integer
next_page_token
required
Next Page Token
Any of:
string
attempts
required
Attempts
Array<object>
WebhookAttemptOut

One delivery attempt of an event to a webhook, or one skipped by the organization’s per-minute limit.

object
attempt_id
required
Attempt Id
string
/^wha_[0-7][0-9a-hjkmnp-tv-z]{25}$/
event_id
required
Event Id

The webhook-id header the URL got (evt_…): the same on every retry.

string
/^evt_[0-7][0-9a-hjkmnp-tv-z]{25}$/
event_type
required
Event Type
string
Allowed values: domain.verified message.bounced message.complained message.delivered message.received message.rejected message.sent message.unsubscribed
subject_id
required
Subject Id

What the event is about: a message (msg_…), one recipient of a sent message (dlv_…; the body names its message and address), or a custom domain (dom_…).

string
attempt
required
Attempt

The delivery’s try, 1 the first time (when retries come: the webhooks’ event docs).

integer
outcome
required
AttemptOutcome

delivered: 2xx. failed: no 2xx; failures in a row pause the webhook (disabled_reason: failing). skipped: not sent, never sent later — the organization’s webhook deliveries per minute were used up.

string
Allowed values: delivered failed skipped
status_code
required
Status Code

The URL’s HTTP status; null when it did not answer or nothing was sent.

Any of:
integer
error
required

Why it failed when the URL did not answer 2xx; null otherwise.

Any of:
AttemptError

Why an attempt failed — our own short reason, never the error’s text (the URL may hold a token, and the log is shown to who may only read webhooks).

string
Allowed values: bad_status timeout connection_failed dns_failed blocked_target
duration_ms
required
Duration Ms

How long the attempt took, its DNS lookup and connection included (so also of one that failed before a request left); null when it was skipped (skipped).

Any of:
integer
created_at
required
Created At
string format: date-time

Example

{
"count": 1,
"next_page_token": null,
"attempts": [
{
"attempt_id": "wha_01je56wqswfmn9pgbc1wq8tjgq",
"event_id": "evt_01je56wqswfmn9pgbc1wq8tjgq",
"event_type": "domain.verified",
"subject_id": "dom_01je56wqswfmn9pgbc1wq8tjgq",
"attempt": 1,
"outcome": "delivered",
"status_code": 200,
"error": null,
"duration_ms": 182,
"created_at": "2026-12-01T12:00:00Z"
}
]
}

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.