---
title: "Get alert by ID."
method: GET
path: "/alerts/{alert_id}"
tags: ["legacy_alerts"]
---

# Get alert by ID.

`GET /alerts/{alert_id}`

“evalMatches” data in the response is cached in the db when and only when the state of the alert changes (e.g. transitioning from “ok” to “alerting” state).
If data from one server triggers the alert first and, before that server is seen leaving alerting state, a second server also enters a state that would trigger the alert, the second server will not be visible in “evalMatches” data.

## Path parameters

- `alert_id` string, required

## Response `200`

(empty)

- LegacyAlert
  - `Created` string, date-time
  - `DashboardId` integer
  - `EvalData` Json
  - `ExecutionError` string
  - `For` integer
  - `Frequency` integer
  - `Handler` integer
  - `Id` integer
  - `Message` string
  - `Name` string
  - `NewStateDate` string, date-time
  - `OrgId` integer
  - `PanelId` integer
  - `Settings` Json
  - `Severity` string
  - `Silenced` boolean
  - `State` string
  - `StateChanges` integer
  - `Updated` string, date-time
  - `Version` integer

## Other responses

- `401` — UnauthorizedError is returned when the request is not authenticated.
- `500` — InternalServerError is a general error indicating something went wrong internally.

---

[API](https://skmtc.net/nforgeio/apis/grafana-http-api.md) · [All operations](https://skmtc.net/nforgeio/apis/grafana-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nforgeio/grafana-http-api/versions/3cb6c3f42dc7/schema)
