## GET /v1/webhooks

List webhook endpoints and activation states.

Required permissions: read:webhooks.
API key: Supported.
CLI user token: Supported.
Session token: Not supported by session tokens, even with permissions.ellipsis enabled.
Higher permission levels include lower levels: read < write < delete.

### Response

```text
{
  "webhooks": [
    {
      "activated_at": str,
      "created_at": str,
      "description": str,
      "events": [
        "session.create"
      ],
      "id": str,
      "last_delivery": {
        "attempt_count": int,
        "completed_at": str,
        "created_at": str,
        "event_id": str,
        "event_type": str,
        "id": str,
        "last_error": str,
        "last_http_status": int,
        "next_attempt_at": str,
        "status": str,
        "url": str,
        "webhook_id": str
      },
      "state": str,
      "updated_at": str,
      "url": str,
      "verified_at": str
    }
  ]
}
```

### Python

```python
import os

from ellipsis import Ellipsis

client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])

result = client.webhooks.list()
print(result)
```

### TypeScript

```typescript
import { Ellipsis } from '@ellipsis-dev/sdk';

const client = new Ellipsis({
  apiKey: process.env.ELLIPSIS_API_TOKEN!,
});

const result = await client.webhooks.list();
console.log(result);
```

### cURL

```bash
curl "https://api.ellipsis.dev/v1/webhooks" \
  -H "Authorization: Bearer $ELLIPSIS_API_TOKEN"
```

### Response schema

```json
{
  "properties": {
    "webhooks": {
      "items": {
        "properties": {
          "activated_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "events": {
            "items": {
              "const": "session.create",
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "last_delivery": {
            "anyOf": [
              {
                "properties": {
                  "attempt_count": {
                    "type": "integer"
                  },
                  "completed_at": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "created_at": {
                    "format": "date-time",
                    "type": "string"
                  },
                  "event_id": {
                    "type": "string"
                  },
                  "event_type": {
                    "enum": [
                      "session.create",
                      "webhook.ping"
                    ],
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "last_error": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last_http_status": {
                    "anyOf": [
                      {
                        "type": "integer"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "next_attempt_at": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "enum": [
                      "pending",
                      "delivering",
                      "retrying",
                      "succeeded",
                      "failed",
                      "cancelled"
                    ],
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "webhook_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "webhook_id",
                  "event_id",
                  "event_type",
                  "url",
                  "status",
                  "created_at",
                  "completed_at",
                  "attempt_count",
                  "next_attempt_at",
                  "last_http_status",
                  "last_error"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "enum": [
              "unverified",
              "pending",
              "active"
            ],
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "verified_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "url",
          "events",
          "description",
          "state",
          "created_at",
          "updated_at",
          "verified_at",
          "activated_at"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "webhooks"
  ],
  "type": "object"
}
```
