# List Deliveries

Canonical: https://docs.bluehola.com/docs/webhooks/get-v1-webhook-endpoints-id-deliveries
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--get">GET</span><code class="endpoint-path">/v1/webhook-endpoints/{id}/deliveries</code></div>

List an endpoint's delivery records, newest first, with cursor pagination. Event content is not included.

:::note[Authentication]

Send `Authorization: Bearer <API_KEY>` in the request headers. Which resources an API Key can reach is determined by its current authorization scope.

:::

## Request

Base URL: `https://api.bluehola.com`

### Parameters

| Name | In | Required | Type / constraints | Description |
| --- | --- | --- | --- | --- |
| `id` | path | Yes | string | The callback endpoint ID, `whe_...` |
| `status` | query | No | `pending` / `queued` / `delivered` / `failed` | Return only deliveries in this status. Any other value returns `400` rather than being ignored |
| `limit` | query | No | integer, 1–100 | Page size, default 50. Out of range returns `400` |
| `before` | query | No | string | The `nextCursor` from the previous page |

```bash
curl "https://api.bluehola.com/v1/webhook-endpoints/whe_123/deliveries?status=failed&limit=20" \
  -H "Authorization: Bearer <API_KEY>"
```

## Response

| Status | Description |
| --- | --- |
| `200` | OK |
| `4xx` | Client error |

### 200 response schema

```json
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "endpointId": {
            "type": "string"
          },
          "eventId": {
            "type": [
              "string",
              "null"
            ]
          },
          "eventType": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "queued",
              "delivered",
              "failed"
            ]
          },
          "attempts": {
            "type": "integer"
          },
          "responseStatus": {
            "type": [
              "integer",
              "null"
            ]
          },
          "responseBodyPreview": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          },
          "nextRetryAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "redeliveredFrom": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
```

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

### Response fields

| Field | Meaning |
| --- | --- |
| `items[].id` | Delivery ID, `wd_...` |
| `items[].endpointId` | The endpoint this delivery was sent to |
| `items[].eventId` | The `evt_...` ID of a platform event; `null` for Meta-shaped events (`message` / `status` / `change`) |
| `items[].eventType` | The event type, the same value as `X-Webhook-Event` |
| `items[].status` | `pending` / `queued`: not finished yet, including deliveries waiting for their next retry. `delivered`: your endpoint returned `2xx`. `failed`: a final failure — a non-retryable `4xx`, or all 8 attempts used up |
| `items[].attempts` | Attempts made so far |
| `items[].responseStatus` | The HTTP status your endpoint returned on the last attempt; `null` if no response was received |
| `items[].responseBodyPreview` | A truncated excerpt of your endpoint's response body |
| `items[].lastError` | The latest error, such as a timeout or connection failure |
| `items[].nextRetryAt` | When the next automatic retry is scheduled; `null` when none is |
| `items[].redeliveredFrom` | For a [manual redelivery](post-v1-webhook-endpoints-id-deliveries-deliveryid-redeliver.md), the ID of the original delivery; otherwise `null` |
| `items[].createdAt` / `completedAt` | When the delivery was created and when it finished (`null` while unfinished) |
| `nextCursor` | Pass it as `before` for the next page; `null` means there are no more |

## Notes

The list does **not** include the event payload. To get an event's content back, [redeliver](post-v1-webhook-endpoints-id-deliveries-deliveryid-redeliver.md) that delivery.

This is the place to look when [List Endpoints](get-v1-webhook-endpoints.md) shows a failed `lastDelivery`: filter with `status=failed` to find the events your endpoint missed. A customer Key can only read the deliveries of endpoints that belong to its customer entity.
