# List webhook deliveries

`GET /v1/webhooks/{id}/deliveries`

What was posted to an endpoint, newest first, with the answer and the tries.

Needs the scope: `webhooks:read`

## Path parameters

- `id` (string, required): The id of the item. Up to 64 characters.

## Query parameters

- `q` (string): Text to search for. Only items that contain it are returned. Up to 40 characters.
- `limit` (integer): How many items to return, from 1 to 100. Without it you get 25.
- `offset` (integer): How many items to skip. Use it with `limit` to read the next page. Default: `0`.
- `after` (string): The id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.
- `before` (string): The id of the first item you have. The answer ends with the item just before it. Give this or `after`, not both. Up to 64 characters.

## Returns

- `object` ("list"): Always `list`.
- `data` (object[]): The items on this page.
- `data[].object` ("webhook_delivery"): Always `webhook_delivery`.
- `data[].id` (string): The id of the delivery.
- `data[].webhookId` (string): The id of the webhook it was for.
- `data[].type` (string): The event that was posted. One of: `email.sent`, `email.delivered`, `email.delayed`, `email.bounced`, `email.opened`, `email.clicked`, `email.complained`, `email.failed`, `email.received`, `email.scheduled`, `email.canceled`, `automation.entered`, `automation.finished`, `automation.step`.
- `data[].state` (string): `pending` while it is still being tried, `delivered` once your address answered 2xx, `failed` after the last try. One of: `pending`, `delivered`, `failed`.
- `data[].status` (integer): The HTTP status of the last answer, or 0 when there was none.
- `data[].attempts` (integer): How many times it has been tried.
- `data[].error` (string): What went wrong on the last try. Empty when nothing did.
- `data[].nextAttemptAt` (string | null): When it is tried again, or `null`.
- `data[].createdAt` (string): When the event happened.
- `total` (integer): How many items match in all, on every page together.
- `hasMore` (boolean): Whether more items follow this page.

## Example

cURL:

```bash
curl "$OPENSEND_API_URL/v1/webhooks/wh_01/deliveries" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

TypeScript:

```ts
await opensend.webhooks.deliveries('wh_01')
```

CLI:

```bash
opensend webhooks deliveries wh_01
```

MCP:

```json
{
  "name": "webhooks_deliveries",
  "arguments": {
    "id": "wh_01"
  }
}
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "webhook_delivery",
      "id": "evt_03:wh_01",
      "webhookId": "wh_01",
      "type": "email.received",
      "state": "delivered",
      "status": 200,
      "attempts": 1,
      "error": "",
      "nextAttemptAt": null,
      "createdAt": "2026-11-27T09:30:00.000Z"
    },
    {
      "object": "webhook_delivery",
      "id": "evt_02:wh_01",
      "webhookId": "wh_01",
      "type": "email.scheduled",
      "state": "delivered",
      "status": 200,
      "attempts": 1,
      "error": "",
      "nextAttemptAt": null,
      "createdAt": "2026-11-27T09:30:00.000Z"
    },
    {
      "object": "webhook_delivery",
      "id": "evt_01:wh_01",
      "webhookId": "wh_01",
      "type": "email.sent",
      "state": "delivered",
      "status": 200,
      "attempts": 1,
      "error": "",
      "nextAttemptAt": null,
      "createdAt": "2026-11-27T09:30:00.000Z"
    }
  ],
  "total": 3,
  "hasMore": false
}
```
