# List recent deliveries to an endpoint

> Newest first. One row per event and endpoint, not per attempt: `attempt` counts the tries so far and `status` is the current state.

Source: https://docs.spicrawl.com/api-reference/webhooks/webhooks-deliveries-list

## GET /v1/webhooks/{webhookID}/deliveries

Operation ID: `webhooksDeliveriesList`. API key scope: `webhooks`.

Newest first. One row per event and endpoint, not per attempt: `attempt` counts the tries so far and
`status` is the current state. `status` is `pending` (waiting for its first attempt or a retry),
`delivering` (an attempt is in flight), `delivered`, `failed` (will be retried, see `next_retry_at`) or
`dead` (the retry ladder ran out, or the target was refused by the SSRF guard). `last_error` says why the
last attempt failed.

### Example

```bash
curl "https://api.spicrawl.com/v1/webhooks/{webhookID}/deliveries" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `webhookID` | path | string | yes | The endpoint `id`. An id of another organization answers 404. |
| `limit` | query | integer; default `20` | no | Deliveries to return. Defaults to 20; out of range (1 to 100) is a 400, not clamped. |

### Responses

#### 200

Recent deliveries, newest first.

Headers: `X-Request-Id`.

`application/json`.

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | array of object (`WebhookDelivery`) | yes |  |

#### 400

The request is invalid. Not retryable; fix the request using `code` and `diagnostics.hint`.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 404

No such resource for this key's organization.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
