## GET /v1/webhooks/deliveries

List recent deliveries and their statuses.

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
{
  "deliveries": [
    {
      "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
    }
  ],
  "has_more": bool,
  "next_cursor": str
}
```

### Python

```python
import os

from ellipsis import Ellipsis

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

for item in client.webhooks.deliveries.list():
    print(item)
```

### TypeScript

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

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

for await (const item of await client.webhooks.deliveries.list()) {
  console.log(item);
}
```

### cURL

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

### Response schema

```json
{
  "properties": {
    "deliveries": {
      "items": {
        "properties": {
          "attempt_count": {
            "type": "integer"
          },
          "completed_at": {
            "anyOf": [
              {
                "format": "date-time",
                "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": [
              {
                "format": "date-time",
                "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": "array"
    },
    "has_more": {
      "default": false,
      "type": "boolean"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "deliveries"
  ],
  "type": "object"
}
```
