---
title: "List Alerts"
method: GET
path: "/api/v1/public/alerts"
tags: ["Alerts"]
---

# List Alerts

`GET /api/v1/public/alerts`

## Request

- Base URL: `https://app.traceroot.ai`
- URL: `https://app.traceroot.ai/api/v1/public/alerts`
- Auth: HTTP bearer

List the alerts in the caller's project (oldest first) with its capacity.

## Query parameters

- `limit` integer: Items per page
- `page` integer: 0-based page index
- `search_query` string, nullable: Case-insensitive substring match on the alert name
- `project_id` string, nullable: Target project for the request. Required when authenticating with a user session token (a user credential is only meaningful scoped to a project); for an API key it is optional and, if given, must match the key's project.

## Response `200`

Successful Response

- PublicAlertListResponse: Paginated list of the project's alerts for the public API.
  - `data` AlertSummary[], required
    - `aggregation` string, required
    - `alerted_at` string, date-time, nullable, required
    - `create_time` string, date-time, required
    - `creator` string, nullable, required
    - `id` string, required
    - `last_error` string, nullable, required
    - `last_error_at` string, date-time, nullable, required
    - `last_evaluated_at` string, date-time, nullable, required
    - `last_notify_at` string, date-time, nullable, required
    - `last_notify_error` string, nullable, required
    - `last_notify_status` string, nullable, required
    - `measure` string, required
    - `name` string, required
    - `severity` string, required
    - `severity_changed_at` string, date-time, nullable, required
    - `status` string, required
    - `threshold` number, required
    - `threshold_operator` string, required
    - `update_time` string, date-time, required
    - `view` string, required
    - `window` string, required
  - `meta` AlertListMeta, required: Pagination plus the project's alert capacity.
    - `capacity` AlertCapacity, required: How many alerts the project holds against its per-project cap.
      - `max` integer, required
      - `used` integer, required
    - `limit` integer, required
    - `page` integer, required
    - `total` integer, required

## Other responses

- `401`: Authentication failed
- `422`: Validation Error
- `503`: Authentication service unavailable

---

[API](https://skmtc.dev/traceroot/apis/traceroot-public-api.md) - [All operations](https://skmtc.dev/traceroot/apis/traceroot-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traceroot/apis/traceroot-public-api/revisions/ce6aef96c0d6?raw)
