---
title: "Test Alert"
method: POST
path: "/api/v1/alerts/{alert_id}/test"
tags: ["alerts"]
---

# Test Alert

`POST /api/v1/alerts/{alert_id}/test`

## Request

- Base URL: `https://geo.sig.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://geo.sig.ai/api/v1/alerts/{alert_id}/test`
- Auth: HTTP bearer

Test an alert rule (dry run) to see if it would trigger.

## Path parameters

- `alert_id` string, uuid, required

## Cookies

- `access_token` string, nullable

## Request body

- AlertTestRequest: Schema for testing an alert (dry run).
  - `conditions` object, required: Conditions to test
  - `channels` object[], required: Channels to simulate

## Response `200`

Successful Response

- AlertTestResponse: Schema for alert test response.
  - `would_trigger` boolean, required: Whether alert would trigger
  - `trigger_reason` string, nullable: Why alert would/wouldn't trigger
  - `matched_data` object, nullable: Data that matched conditions
  - `channel_validation` object[], required: Channel validation results

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sig/apis/ai-visibility-intelligence-api.md) · [All operations](https://skmtc.dev/sig/apis/ai-visibility-intelligence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sig/apis/ai-visibility-intelligence-api/revisions/3ec39f9be9e0?raw)
