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

# Create Rule

`POST /api/v1/alert-rules`

## Request

- Base URL: `https://api.verdict.finance`
- URL: `https://api.verdict.finance/api/v1/alert-rules`
- Auth: HTTP bearer

## Headers

- `authorization` string, nullable

## Request body

- AlertRuleCreate
  - `rule_type` 'grade_change' | 'composite_drop' | 'composite_change', required
  - `threshold_value` union
    - number
    - string
  - `channels` object, required

## Response `201`

Successful Response

- AlertRuleCreatedResponse: 201 response — includes webhook_signing_key (shown ONCE) if webhook configured.
  - `id` string, uuid, required
  - `rule_type` string, required
  - `threshold_value` string, nullable, required
  - `channels` object, required
  - `is_active` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `webhook_signing_key` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/verdict/apis/verdict-api.md) · [All operations](https://skmtc.dev/verdict/apis/verdict-api/llms.txt) · [OpenAPI document](https://skmtc.dev/verdict/apis/verdict-api/revisions/15de66a17c50?raw)
