---
title: "Create alert"
method: POST
path: "/v1/projects/{project_id}/alerts"
tags: ["Alerts"]
---

# Create alert

`POST /v1/projects/{project_id}/alerts`

## Request

- Base URL: `https://api.agentry.sh`
- URL: `https://api.agentry.sh/v1/projects/{project_id}/alerts`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, required

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `name` string, required
  - `blueprint_id` string, required
  - `threshold_column` string, required
  - `threshold_op` 'gt' | 'gte' | 'lt' | 'lte' | 'eq', required
  - `threshold_value` union, required
    - string
    - number
    - boolean
  - `params` object
  - `description` string
  - `webhook_id` string

## Response `200`

OK

- object
  - `id` string, required
  - `name` string, required
  - `blueprint_id` string, required
  - `idempotent_replay` boolean, required
  - `next_action` string

## Other responses

- `default`: Error

---

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