---
title: "Create Alert Rule Route"
method: POST
path: "/api/v1/alert-rules"
tags: ["alerts"]
---

# Create Alert Rule Route

`POST /api/v1/alert-rules`

## Headers

- `Authorization` string, nullable

## Request body

- AlertRuleCreate
  - `name` string, required
  - `trigger_type` 'policy_block' | 'policy_escalate' | 'high_latency' | 'high_intent_score', required
  - `threshold` number, nullable
  - `channels` string[]
  - `proxy_id` string, uuid, nullable
  - `enabled` boolean

## Response `201`

Successful Response

- AlertRuleRead
  - `id` string, uuid, required
  - `org_id` string, uuid, required
  - `proxy_id` string, uuid, nullable, required
  - `name` string, required
  - `trigger_type` string, required
  - `threshold` number, nullable, required
  - `channels` string[], required
  - `enabled` boolean, required
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/xenovia/apis/controlplane.md) · [All operations](https://skmtc.net/xenovia/apis/controlplane/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xenovia/controlplane/versions/0e6598cbe8a0/schema)
