---
title: "Get active alerts"
method: GET
path: "/v1/alerts"
---

# Get active alerts

`GET /v1/alerts`

List alert rules that are currently in the `alert` state.

## Query parameters

- `project_id` string
- `metric` 'turn_latency_p50' | 'turn_latency_p95' | 'api_errors' | 'function_errors' | 'call_crashes' | 'call_volume' — Metric to monitor.

## Response `200`

Active alerts retrieved successfully.

- ActiveAlertsListResponse — Every alert rule currently in the firing state.
  - `data` ActiveAlertResponse[], required
    - `alert_rule_id` string, required — Alert rule ID
    - `name` string, required — Alert rule name
    - `project_id` string, nullable — Project ID
    - `metric` 'turn_latency_p50' | 'turn_latency_p95' | 'api_errors' | 'function_errors' | 'call_crashes' | 'call_volume', required — Metric to monitor.
    - `operator` '>' | '<' | '>=' | '<=', required — Comparison operator used by the alert rule.
    - `threshold_value` integer, required — Threshold value
    - `window_duration` '5m' | '10m' | '60m', required — Evaluation window duration. Allowed values: `5m`, `10m`, or `60m`.
    - `since` string, date-time, required — When the alert started firing
    - `last_evaluated_at` string, date-time, nullable — Last evaluation timestamp
    - `current_value` integer, nullable — Current metric value

## Other responses

- `401` — Missing or invalid API key.
- `500` — Internal server error.

---

[API](https://skmtc.net/poly/apis/polyai-agents-api.md) · [All operations](https://skmtc.net/poly/apis/polyai-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poly/polyai-agents-api/versions/76f3c606e395/schema)
