> ## 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.

# Get Webhook Delivery Logs

> Delivery attempts of your webhooks in the last 3 days, newest first, 100 per page

Lists what SmartLead sent to your webhooks and whether each delivery succeeded, so you can debug a webhook that is not receiving events. With a client API key the list is always empty: the delivery log rows are not tagged with a client, and a client key only sees rows of its own client. Use the main account's API key. To re-send failed deliveries of a campaign, use [Retrigger Failed Events](https://api.smartlead.ai/api-reference/campaigns/retrigger-webhooks.md).

## Query Parameters

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

Your SmartLead API key (a main or client key)

**start\_date** `string` *required*

Window start, ISO 8601 with a UTC offset (for example `2025-12-01T00:00:00Z`) or a bare date (`2025-12-01`). Must be within the last 3 days.

**end\_date** `string` *required*

Window end (exclusive), same format. Must be after `start_date`.

**cursor** `string`

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

```bash cURL theme={null}
curl "https://server.smartlead.ai/api/v1/webhook-event-logs?api_key=YOUR_KEY&start_date=2025-12-01T00:00:00Z&end_date=2025-12-02T00:00:00Z"
```

## Response Fields

**ok** `boolean`

`true`

**data** `array`

Delivery attempts, newest first.

**item**

**id** `string`

Log row ID

**event\_id** `string`

ID of the event that was delivered

**event\_name** `string`

Event type, one of [List Webhook Event Types](https://api.smartlead.ai/api-reference/webhooks/event-types.md)

**user\_id** `integer`

Your account's user ID

**campaign\_id** `integer`

Campaign of the event, when it has one

**client\_id** `integer`

Always `null` today (delivery log rows are not tagged with a client)

**eclm\_id** `string`

Campaign lead mapping of the event, when it has one (a string, as it is a 64-bit ID)

**status** `string`

`SUCCEEDED` or `FAILED`; a delivery retried later shows `RETRY_REQUESTED`, then `RETRY_SUCCEEDED` or `RETRY_FAILED`

**timestamp** `string`

When the delivery was attempted

**activity\_log** `array`

Per-attempt details keyed by event name: HTTP `status`, `statusText`, `isSuccess`, `time`, the webhook (`webhookMetadata`) and your endpoint's response (`webhookResponse`)

**pagination** `object`

`limit` (100), `has_more`, and `next_cursor` (null on the last page)

## Response Codes

**200** `Success`

Request successful

**400** `Bad Request`

Missing or invalid dates, a window older than 3 days, `end_date` not after `start_date`, a malformed `cursor`, or an unknown query parameter

**401** `Unauthorized`

Invalid or missing API key

**500** `Internal Server Error`

Server error; `error` carries the server's error message. Retry the request

```json 200 - Success theme={null}
{
  "ok": true,
  "data": [
    {
      "id": "90211",
      "event_id": "a1b2c3",
      "event_name": "EMAIL_REPLY",
      "campaign_id": 123,
      "user_id": 456,
      "client_id": null,
      "eclm_id": "7890",
      "status": "FAILED",
      "timestamp": "2025-12-01T10:15:00.000Z",
      "activity_log": [
        {
          "EMAIL_REPLY": {
            "time": "2025-12-01T10:15:00.000Z",
            "status": 404,
            "isSuccess": false,
            "statusText": "Not Found",
            "webhookMetadata": { "webhook_id": 12, "webhook_url": "https://example.com/hook", "webhook_name": "Replies", "webhook_created_at": "2025-11-01T00:00:00.000Z" }
          }
        }
      ]
    }
  ],
  "pagination": { "limit": 100, "has_more": false, "next_cursor": null }
}
```

```json 400 - Window too old theme={null}
{
  "ok": false,
  "error": "Webhook event logs are queryable for the last 3 days only; start_date cannot be earlier than 2025-11-28T10:00:00.000Z",
  "status": "error"
}
```

```json 500 - Internal Server Error theme={null}
{
  "ok": false,
  "error": "<the server's error message>",
  "status": "error"
}
```


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