---
title: "List Webhook Attempts"
url: "https://docs.yoagent.dev/reference/rest-api/operations/listwebhookattempts"
---

# List Webhook Attempts

GET

/v0/webhooks/{webhook_id}/attempts

```sh
curl -s "https://api.yoagent.dev/v0/webhooks/whk_01je56wqswfmn9pgbc1wq8tjgq/attempts" \
  -H "Authorization: Bearer $YOAGENT_KEY"
```

```js
const response = await fetch("https://api.yoagent.dev/v0/webhooks/whk_01je56wqswfmn9pgbc1wq8tjgq/attempts", {
  headers: {
    Authorization: `Bearer ${process.env.YOAGENT_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
const data = await response.json();
```

```python
import os

import requests

response = requests.get(
    "https://api.yoagent.dev/v0/webhooks/whk_01je56wqswfmn9pgbc1wq8tjgq/attempts",
    headers={"Authorization": f"Bearer {os.environ['YOAGENT_KEY']}"},
    timeout=60,
)
response.raise_for_status()
data = response.json()
```

- api.yoagent.dev/v0/webhooks/{webhook_id}/attempts

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.

## Authorizations

- **[ApiKey](https://docs.yoagent.dev/reference/rest-api#apikey)**

## Parameters

### Path Parameters

**webhook_id**

required

_Webhook Id_

string

/^whk\_\[0-7]\[0-9a-hjkmnp-tv-z]{25}$/

### Query Parameters

**limit**

_Limit_

integer

default: 20 >= 1 <= 100

How many items a page holds.

**page_token**

_Page Token_

Any of:

**string**

The next_page_token of the previous page

string

**null**

null

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

## Responses

### 200

Successful Response

application/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**

string

**null**

null

**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**

integer

**null**

null

**error**

required

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

Any of:

**AttemptError**

_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

**null**

null

**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**

integer

**null**

null

**created_at**

required

_Created At_

string format: date-time

#### Example

```json
{
  "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"
    }
  ]
}
```

### default

An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: [Errors](https://docs.yoagent.dev/reference/conventions#errors).
