# List alerts

```http
GET /projects/{project_reference}/alerts
```

List project alerts. Requires project.logs.read.

## Parameters

| Name                | In    | Required | Description                                                               |
| ------------------- | ----- | -------- | ------------------------------------------------------------------------- |
| `project_reference` | path  | Yes      | Project slug, UUID, or domain that identifies the project.                |
| `cursor`            | query |          | Opaque cursor pointing at the next page. Omit it to read the first page.  |
| `limit`             | query |          | Maximum number of entries to return. Defaults to 20 and is capped at 100. |
| `status`            | query |          |                                                                           |
| `sort_order`        | query |          | desc lists the newest alert first.                                        |

## Responses

| Status | Description                                                                                                                                                                                                                                                                                                                                                                                                       |
| ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | Alert episodes from the last 30 days of retained state history, newest first, including episodes already firing when that history begins, firing and resolved. An alert is one firing of a Veryfront alert rule for this project, such as failing agent or task runs, with the run error code and links to the project error logs and traces for its window. Only alerts labelled with this project are returned. |
| 400    | Bad request                                                                                                                                                                                                                                                                                                                                                                                                       |
| 401    | Unauthorized                                                                                                                                                                                                                                                                                                                                                                                                      |
| 403    | Forbidden                                                                                                                                                                                                                                                                                                                                                                                                         |
| 404    | Not found                                                                                                                                                                                                                                                                                                                                                                                                         |
| 429    | Rate limit exceeded                                                                                                                                                                                                                                                                                                                                                                                               |
| 500    | Server error                                                                                                                                                                                                                                                                                                                                                                                                      |
| 502    | Bad gateway                                                                                                                                                                                                                                                                                                                                                                                                       |
| 503    | Service unavailable                                                                                                                                                                                                                                                                                                                                                                                               |
