---
title: "Get alert by ID"
method: GET
path: "/dashboard/api/alerts/{id}"
tags: ["Alerts"]
---

# Get alert by ID

`GET /dashboard/api/alerts/{id}`

## Request

- Base URL: `https://api.agnost.ai`
- URL: `https://api.agnost.ai/dashboard/api/alerts/{id}`
- Auth: one of:
  - HTTP bearer and API key in header `x-org-id`
  - API key in header `x-api-key`

## Path parameters

- `id` string, uuid, required

## Response `200`

Alert configuration

- AlertConfig
  - `id` string, uuid
  - `name` string
  - `event_type` 'custom' | 'global_report' | 'suggested_intent': suggested_intent alerts are triggered by intent discovery rather than the scheduled alert poller.
  - `natural_language_query` string
  - `sql_query` string
  - `context_sql_query` string: Required for custom alerts. Returns up to five recent detail rows after the condition threshold is met.
  - `action_natural_language_query` string: Optional instruction used only when no details query is available.
  - `threshold_value` number
  - `threshold_operator` '>' | '<' | '>=' | '<=' | '=='
  - `check_interval_hours` integer
  - `connection_ids` string[]
  - `recipient_emails` string[]
  - `active` boolean
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Changes

- **2026-11-03** `a61431b48f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agnost/apis/agnost-ai-api/changes/dashboard/api/alerts/:id/get.md)

---

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