# List webhooks

**`GET https://myagentmail.com/v1/webhooks`**

Group: Webhooks
Operation ID: `listWebhooks`

## Responses

### 200 — OK

```json
{
  "webhooks": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "url": "https://example.com",
      "events": [
        "message.received"
      ],
      "secret": "string",
      "isActive": false,
      "createdAt": "2026-05-01T08:11:44.639Z"
    }
  ]
}
```

## Code samples

### TypeScript

```typescript
import { MyAgentMail } from "myagentmail";

const client = new MyAgentMail({ apiKey: process.env.MYAGENTMAIL_API_KEY! });

// GET /v1/webhooks
const result = await client.request("get", "/v1/webhooks");
```

### curl

```bash
curl -X GET 'https://myagentmail.com/v1/webhooks' \
  -H 'X-API-Key: $MYAGENTMAIL_API_KEY'
```

### Python

```python
import os, requests

r = requests.get(
    "https://myagentmail.com/v1/webhooks",
    headers={"X-API-Key": os.environ["MYAGENTMAIL_API_KEY"]},
)
r.raise_for_status()
print(r.json())
```
