---
title: "Get Alert Stats"
method: GET
path: "/api/v1/alerts/stats"
tags: ["alerts"]
---

# Get Alert Stats

`GET /api/v1/alerts/stats`

## Request

- Base URL: `https://app.kaminari.ad`
- URL: `https://app.kaminari.ad/api/v1/alerts/stats`
- Auth: HTTP bearer

Get alert counts grouped by status.

Accepts every filter the list endpoint does except ``status`` — the
response buckets by status, so the four counts sum to the ``total``
that ``GET /api/v1/alerts`` reports for the same query. Omitting the
dates means all time, matching the list endpoint; it previously meant
the last 30 days, which broke that sum.

## Query parameters

- `campaign_id` string, uuid, nullable
- `policy_set_id` string, nullable
- `tag` string, nullable
- `country_code` string, nullable
- `date_from` string, date, nullable
- `date_to` string, date, nullable
- `timezone` string

## Response `200`

Successful Response

- AlertStatsResponse: Aggregated alert counts by status.
  - `open` integer, required
  - `escalated` integer, required
  - `resolved` integer, required
  - `dismissed` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kaminari/apis/kaminari-ad-api.md) · [All operations](https://skmtc.dev/kaminari/apis/kaminari-ad-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kaminari/apis/kaminari-ad-api/revisions/013f86e2fd32?raw)
