# List webhooks

`GET /v1/webhooks`

The endpoints of the workspace with the events each one receives.

Needs the scope: `webhooks:read`

## 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.
- `status` (string): Only webhooks in this state: `enabled` or `disabled`. One of: `enabled`, `disabled`.

## Returns

- `object` ("list"): Always `list`.
- `data` (object[]): The items on this page.
- `data[].object` ("webhook"): Always `webhook`.
- `data[].id` (string): The id of the webhook.
- `data[].url` (string): The address events are posted to.
- `data[].events` (string[]): The events it is told about. 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[].status` (string): `enabled` while events are posted to it, `disabled` when it is switched off. One of: `enabled`, `disabled`.
- `data[].format` (string): How an event is written and signed: `native` is this API, `resend` is the headers, signature and body an endpoint built for Resend expects. One of: `native`, `resend`.
- `data[].lastDeliveryAt` (string | null): When an event was last posted to it, or `null`.
- `data[].lastStatus` (integer | null): The HTTP status your address answered with last time, or `null`.
- `data[].createdAt` (string): When the webhook was added.
- `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" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

TypeScript:

```ts
await opensend.webhooks.list()
```

CLI:

```bash
opensend webhooks list
```

MCP:

```json
{
  "name": "webhooks_list",
  "arguments": {}
}
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "webhook",
      "id": "wh_01",
      "url": "https://example.com/webhooks/mail",
      "events": [
        "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"
      ],
      "status": "enabled",
      "format": "native",
      "lastDeliveryAt": "2026-11-27T09:30:00.000Z",
      "lastStatus": 200,
      "createdAt": "2026-11-27T09:30:00.000Z"
    }
  ],
  "total": 1,
  "hasMore": false
}
```
