# List webhook deliveries (https://terac.com/docs/developers/reference/listWebhookDeliveries)

`GET https://terac.com/api/external/v2/hooks/events`

Lists webhook deliveries to your subscriptions, newest first, optionally for one subscription_id. One row per delivery, updated in place across retries, so id is the X-Event-ID your endpoint saw and attempt_count is how many tries it took. Confirmation pings are not logged here.

## Authorization

Requires a Bearer token via the `Authorization` header.

```
Authorization: Bearer <token>
```

## Query Parameters

- `limit` (integer): Most items to return in one page, from 1 to 100. Defaults to 25.
- `cursor` (string): `pagination.next_cursor` from the previous page, to fetch the page after it. Omit it for the first page.
- `subscription_id` (string): Return only deliveries to this subscription ID.

## Responses

### 200: One page of deliveries, newest first.

- `data` (array) **(required)**
  - `id` (string) **(required)**: Also the X-Event-ID header, stable across retries of this delivery.
  - `subscription_id` (string) **(required)**
  - `event_type` (string) **(required)**
  - `resource_id` (string) **(required)**
  - `status` (string) **(required)**: one of: `pending`, `delivered`, `failed`
  - `attempt_count` (integer) **(required)**
  - `response_status` (integer, nullable) **(required)**
  - `error_message` (string, nullable) **(required)**
  - `created_at` (string) **(required)**
  - `last_attempt_at` (string, nullable) **(required)**
  - `delivered_at` (string, nullable) **(required)**
- `pagination` (object) **(required)**
  - `next_cursor` (string, nullable) **(required)**
  - `has_more` (boolean) **(required)**
### 400: Invalid input data

- `message` (string) **(required)**: The error message
- `code` (string) **(required)**: The error code
- `issues` (array): An array of issues that were responsible for the error
  - `message` (string) **(required)**
### 401: The API key is missing, invalid, disabled, expired or revoked, its owner no longer exists, or it is not linked to an organization. The body is nested under `error`.

- `error` (object) **(required)**
  - `code` (string) **(required)**: one of: `UNAUTHORIZED`: The error code.
  - `message` (string) **(required)**: What went wrong.
### 403: Either the account that owns the API key is banned or deleted (from the key check, nested under `error`), or the key's owner lacks the organization permission this operation needs (from the operation, with `code` and `message` at the top level).

- One of: API key error (403)
  - `error` (object) **(required)**
    - `code` (string) **(required)**: one of: `FORBIDDEN`: The error code.
    - `message` (string) **(required)**: What went wrong.
- One of: Insufficient access error (403)
  - `message` (string) **(required)**: The error message
  - `code` (string) **(required)**: The error code
  - `issues` (array): An array of issues that were responsible for the error
    - `message` (string) **(required)**
### 404: Not found

- `message` (string) **(required)**: The error message
- `code` (string) **(required)**: The error code
- `issues` (array): An array of issues that were responsible for the error
  - `message` (string) **(required)**
### 429: The API key is rate limited. A key accepts 100 requests, then refuses every request until more than 60 seconds pass with no accepted request; refused requests do not extend the wait. Wait the number of seconds in `Retry-After`, then retry. The body is nested under `error`.

- `error` (object) **(required)**
  - `code` (string) **(required)**: one of: `RATE_LIMITED`: The error code.
  - `message` (string) **(required)**: What went wrong.
### 500: Internal server error

- `message` (string) **(required)**: The error message
- `code` (string) **(required)**: The error code
- `issues` (array): An array of issues that were responsible for the error
  - `message` (string) **(required)**