# List deliveries

> Page: https://docs.flung.dev/reference/api/get-v1-webhook-endpoints-id-deliveries. Index of every page: https://docs.flung.dev/llms.txt

Recent deliveries to the endpoint, newest first, with their attempts and the endpoint's last answer.

`GET /v1/webhook-endpoints/{id}/deliveries`

## TL;DR

| Question | Answer |
|---|---|
| What does it do? | List deliveries. |
| What does it need? | An API key or an OAuth access token. |
| What does it take? | `id` in the path, and `limit`, `startingAfter` in the query string. |
| What does it return? | Status 200 with a body of type [`WebhookDeliveryList`](https://docs.flung.dev/reference/api/schemas.md#webhookdeliverylist). |
| In the SDK? | `flung.webhookEndpoints.deliveries()` |
| What can go wrong? | `401` Missing, unknown, revoked or expired API key; `404` No such endpoint in this workspace; `422` The request failed validation; `429` Too many requests for this credential; wait for `retry-after` seconds. Every failure has the same [error shape](https://docs.flung.dev/reference/api/errors.md). |

## Example

**curl**

```bash
curl -X GET 'https://api.flung.dev/v1/webhook-endpoints/whe_aaaaaaaaaaaaaaaaaaaaaaaa/deliveries' \
  --header "Authorization: Bearer $FLUNG_API_KEY"
```

**TypeScript**

```ts
import { Flung } from '@flung.dev/sdk'

const flung = new Flung({ apiKey: process.env.FLUNG_API_KEY! })
const result = await flung.webhookEndpoints.deliveries({
  id: 'whe_aaaaaaaaaaaaaaaaaaaaaaaa',
})
```

**fetch**

```js
const response = await fetch('https://api.flung.dev/v1/webhook-endpoints/whe_aaaaaaaaaaaaaaaaaaaaaaaa/deliveries', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${process.env.FLUNG_API_KEY}`,
  },
})
if (!response.ok) throw new Error((await response.json()).error.message)
const result = await response.json()
```

A successful answer looks like this:

```json
{
  "data": [
    {
      "id": "string",
      "eventId": "string",
      "eventType": "string",
      "status": "pending",
      "attempts": 1,
      "responseStatus": 1,
      "lastError": "string",
      "createdAt": "2026-11-01T09:00:00.000Z",
      "updatedAt": "2026-11-01T09:00:00.000Z"
    }
  ],
  "hasMore": true
}
```

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | `string` | yes |  |

## Query parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | `integer` | no |  |
| `startingAfter` | `string` | no |  |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | A page of deliveries. | [`WebhookDeliveryList`](https://docs.flung.dev/reference/api/schemas.md#webhookdeliverylist) |
| 401 | Missing, unknown, revoked or expired API key. | [`Error`](https://docs.flung.dev/reference/api/schemas.md#error) |
| 404 | No such endpoint in this workspace. | [`Error`](https://docs.flung.dev/reference/api/schemas.md#error) |
| 422 | The request failed validation. | [`Error`](https://docs.flung.dev/reference/api/schemas.md#error) |
| 429 | Too many requests for this credential; wait for `retry-after` seconds. | [`Error`](https://docs.flung.dev/reference/api/schemas.md#error) |

## Response body

A 200 answer has the type [`WebhookDeliveryList`](https://docs.flung.dev/reference/api/schemas.md#webhookdeliverylist).

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | `WebhookDelivery[]` | yes |  |
| `data[].id` | `string` | yes |  |
| `data[].eventId` | `string` | yes |  |
| `data[].eventType` | `string` | yes | An event type, or `webhook.ping` for a test. |
| `data[].status` | `"pending" \| "delivered" \| "failed"` | yes | `pending` while retries remain. |
| `data[].attempts` | `integer` | yes |  |
| `data[].responseStatus` | `integer \| null` | yes |  |
| `data[].lastError` | `string \| null` | yes |  |
| `data[].createdAt` | `string` | yes |  |
| `data[].updatedAt` | `string` | yes |  |
| `hasMore` | `boolean` | yes |  |

## See also

| Doc | Why |
|---|---|
| [API reference](https://docs.flung.dev/reference/api.md) | Every endpoint |
| [Schemas](https://docs.flung.dev/reference/api/schemas.md) | Every request and response type |
| [Errors](https://docs.flung.dev/reference/api/errors.md) | Every error code and what to do about it |
