---
title: "Get Annotation by ID."
method: GET
path: "/annotations/{annotation_id}"
tags: ["annotations"]
---

# Get Annotation by ID.

`GET /annotations/{annotation_id}`

## Request

- Base URL: `/api` (relative, and the document’s source URL is not known)
- URL: `/api/annotations/{annotation_id}`
- Auth: one of:
  - HTTP basic
  - API key in header `Authorization`

## Path parameters

- `annotation_id` string, required

## Response `200`

(empty)

- Annotation
  - `alertId` integer
  - `alertName` string
  - `avatarUrl` string
  - `created` integer
  - `dashboardId` integer: Deprecated: Use DashboardUID and OrgID instead
  - `dashboardUID` string
  - `data` Json
  - `email` string
  - `id` integer
  - `login` string
  - `newState` string
  - `panelId` integer
  - `prevState` string
  - `tags` string[]
  - `text` string
  - `time` integer
  - `timeEnd` integer
  - `updated` integer
  - `userId` integer
  - `userUID` string

## 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.dev/grafana/apis/grafana-http-api.md) - [All operations](https://skmtc.dev/grafana/apis/grafana-http-api/llms.txt) - [OpenAPI document](https://skmtc.dev/grafana/apis/grafana-http-api/revisions/df55ba1718ba?raw)
