---
title: "Create Alert"
method: POST
path: "/api/v2/alerts"
tags: ["Alerts"]
---

# Create Alert

`POST /api/v2/alerts`

Creates a new alert

## Request body

- CreateAlertRequest
  - `dashboardId` string, nullable
  - `tileId` string, nullable
  - `savedSearchId` string, nullable
  - `groupBy` string, nullable
  - `threshold` number, required
  - `interval` '1m' | '5m' | '15m' | '30m' | '1h' | '6h' | '12h' | '1d', required
  - `source` 'tile' | 'saved_search', required
  - `thresholdType` 'above' | 'below', required
  - `channel` object, required
    - `type` 'webhook'
    - `webhookId` string
  - `name` string, nullable
  - `message` string, nullable

## Response `200`

Successfully created alert

- AlertResponse
  - `data` Alert
    - `id` string
    - `name` string, nullable
    - `message` string, nullable
    - `threshold` number
    - `interval` '1m' | '5m' | '15m' | '30m' | '1h' | '6h' | '12h' | '1d'
    - `thresholdType` 'above' | 'below'
    - `source` 'tile' | 'saved_search'
    - `state` 'OK' | 'ALERT' | 'INSUFFICIENT_DATA' | 'DISABLED'
    - `channel` object
      - `type` 'webhook'
      - `webhookId` string
    - `team` string
    - `tileId` string, nullable
    - `dashboard` string, nullable
    - `savedSearch` string, nullable
    - `groupBy` string, nullable
    - `silenced` object, nullable
      - `by` string, nullable
      - `at` string, date-time
      - `until` string, date-time
    - `createdAt` string, date-time, nullable
    - `updatedAt` string, date-time, nullable

## Other responses

- `401` — Unauthorized
- `500` — Server error or validation failure

## Changes

- **2026-01-30** `ed852374c451` — 7 breaking, 1 warning, 25 info
  - added the new required request property `channel`
  - added the new required request property `interval`
  - added the new required request property `source`
  - added the new required request property `threshold`
  - …29 more

[Change history](https://skmtc.dev/hyperdxio/apis/hyperdx-external-api/changes/api/v2/alerts/post.md)

---

[API](https://skmtc.dev/hyperdxio/apis/hyperdx-external-api.md) · [All operations](https://skmtc.dev/hyperdxio/apis/hyperdx-external-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hyperdxio/hyperdx-external-api/revisions/ed852374c451/schema)
