> ## Documentation Index
> Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Webhook Deliveries

> A webhook's delivery attempts from the last 30 days, newest first, with cursor paging

Lists the delivery attempts of one webhook from the last 30 days, newest first, so an agent can see whether events reached the receiver and why one failed. Use `pagination.next_cursor` to read the next page.

With a client API key, only webhooks of that client can be read.

## Path Parameters

**webhook\_id** `integer` *required*

The webhook ID (a positive integer, at most 2147483647)

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key (a main or client key)

**status** `string`

Only deliveries with this status: `pending`, `succeeded`, `failed` or `skipped`

**limit** `integer` (default: 50)

Deliveries per page, 1 to 100

**cursor** `string`

The `pagination.next_cursor` of the previous page. Leave it out for the first page.

```bash cURL theme={null}
curl "https://server.smartlead.ai/api/v1/webhook/2152/deliveries?api_key=YOUR_KEY&status=failed&limit=20"
```

```python Python theme={null}
import requests

params = {"api_key": "YOUR_API_KEY", "limit": 100}
deliveries = []
while True:
    page = requests.get("https://server.smartlead.ai/api/v1/webhook/2152/deliveries", params=params).json()
    deliveries += page["data"]
    if not page["pagination"]["next_cursor"]:
        break
    params["cursor"] = page["pagination"]["next_cursor"]
print(len(deliveries))
```

## Response Fields

**ok** `boolean`

`true`

**webhook\_id** `integer`

The webhook read

**data** `array`

Delivery attempts, newest first.

**item**

**id** `string`

Delivery ID

**event\_id** `string`

Event ID (a UUID, the same on every retry of that event)

**event\_type** `string`

The event type, for example `EMAIL_REPLY`

**campaign\_id** `integer`

Campaign of the event, when it has one

**status** `string`

`pending`, `succeeded`, `failed` or `skipped`

**attempt\_count** `integer`

How many times delivery was tried

**last\_status\_code** `integer`

HTTP status your URL answered on the last attempt, or `null`

**last\_error\_code** `string`

Error code of the last attempt, or `null`

**last\_duration\_ms** `integer`

How long the last attempt took, in milliseconds

**next\_attempt\_at** `string`

When the next retry is due, or `null`

**created\_at** `string`

When the delivery was created

**succeeded\_at** `string`

When it succeeded, or `null`

**pagination** `object`

`limit` (page size used), `window_days` (always `30`) and `next_cursor` (pass it as `cursor` for the next page; `null` on the last page)

## Response Codes

**200** `Success`

Request successful

**400** `Bad Request`

`status`, `limit` or `cursor` is not valid, `webhook_id` is not a positive integer up to 2147483647, or an unknown query parameter

**401** `Unauthorized`

Invalid or missing API key

**404** `Not Found`

No webhook with this ID in your account (or your client, for a client key)

**500** `Internal Server Error`

Server error; retry the request

```json 200 - Success theme={null}
{
  "ok": true,
  "webhook_id": 2152,
  "data": [
    {
      "id": "918273",
      "event_id": "0b6c2f0e-6a3f-4f7e-9a51-2f1d4c7b8e90",
      "event_type": "EMAIL_REPLY",
      "campaign_id": 21333,
      "status": "failed",
      "attempt_count": 3,
      "last_status_code": 500,
      "last_error_code": null,
      "last_duration_ms": 412,
      "next_attempt_at": null,
      "created_at": "2026-11-27T10:00:00.123Z",
      "succeeded_at": null
    }
  ],
  "pagination": {
    "limit": 50,
    "window_days": 30,
    "next_cursor": null
  }
}
```

```json 400 - Invalid cursor theme={null}
{
  "ok": false,
  "error": "Invalid cursor: pass pagination.next_cursor from the previous page."
}
```

```json 404 - Not Found theme={null}
{
  "ok": false,
  "error": "Webhook not found - Invalid webhook_id."
}
```

```json 500 - Internal Server Error theme={null}
{
  "ok": false,
  "error": "Failed to list webhook deliveries"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.