# Listar webhooks

GET `https://api.bydomu.com/v1/webhooks`

Esta referência é gerada a partir do código da API, por isso as descrições estão em espanhol. Nomes, parâmetros e exemplos são iguais em qualquer idioma.

Webhooks de la organización con su última entrega y las fallidas de las últimas 24 h. El secreto nunca se devuelve. Pide el scope `webhooks:write`: la lista dice a dónde salen los datos de la organización.

Permissão pedida

`webhooks:write`

Cabeçalho obrigatório

`X-API-Key` · chave secreta

Nível de acesso

Nível 3 · com revisão do suporte

## Resposta 200

`Webhook[]` · 11 campos

**`data[]` id · url · events · eventTypes · isActive · description · createdAt · createdBy · _count · lastDelivery · failedLast24h**

`id` string

`url` string

`events` string[] Eventos legados suscritos

`eventTypes` string[]

`isActive` boolean

`description` string

`createdAt` string

**`createdBy` id · name**

`id` string

`name` string

**`_count` deliveries**

`deliveries` integer

**`lastDelivery` success · statusCode · error · createdAt**

`success` boolean

`statusCode` integer

`error` string

`createdAt` string

`failedLast24h` integer

## Erros possíveis

com a forma `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/webhooks" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.webhooks.list();
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/webhooks",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Resposta · 200 · exemplo**

```json
{
  "data": [
    {
      "id": "clx1whk001",
      "url": "https://hooks.zapier.com/hooks/catch/123456/abcdef/",
      "events": [],
      "eventTypes": [
        "deal.won"
      ],
      "isActive": true,
      "description": "Zap: negocios ganados a Google Sheets",
      "createdAt": "2026-09-22T12:00:00.000Z",
      "createdBy": {
        "id": "clx1usr001",
        "name": "Carlos Rodríguez"
      },
      "_count": {
        "deliveries": 42
      },
      "lastDelivery": {
        "success": true,
        "statusCode": 200,
        "error": "connect ETIMEDOUT",
        "createdAt": "2026-09-25T10:00:00.000Z"
      },
      "failedLast24h": 0
    }
  ]
}
```
