---
title: "Test an alert without sending notifications"
method: POST
path: "/alerts/{id}/test"
tags: ["Alerts"]
---

# Test an alert without sending notifications

`POST /alerts/{id}/test`

Executes the alert query and evaluates the condition, but does **not** send notifications.
Returns the query result and which channels **would** have fired.

## Path parameters

- `id` string, required

## Response `200`

Test result

- AlertTestResponse
  - `data` object, required
    - `would_trigger` boolean
    - `result` object
    - `channels_that_would_fire` string[]
    - `message` string

## Changes

- **2026-04-19** `9aec01bc7511` — 1 breaking, 3 warning
  - the `data/channels_that_would_fire/items/` response's property type changed from `object` to `string` for status `200`
  - removed the optional property `data/channels_that_would_fire/items/name` from the response with the `200` status
  - removed the optional property `data/channels_that_would_fire/items/status` from the response with the `200` status
  - removed the optional property `data/channels_that_would_fire/items/type` from the response with the `200` status
- **2026-03-03** `7141381739ac` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/lynxbase/apis/lynxdb-api/changes/alerts/:id/test/post.md)

---

[API](https://skmtc.dev/lynxbase/apis/lynxdb-api.md) · [All operations](https://skmtc.dev/lynxbase/apis/lynxdb-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lynxbase/lynxdb-api/revisions/9aec01bc7511/schema)
