---
title: "Create Monitor"
method: POST
path: "/api/monitors"
tags: ["monitors"]
---

# Create Monitor

`POST /api/monitors`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/monitors`
- Auth: none declared

## Request body

- CreateMonitorRequest
  - `name` string, required
  - `query` string, required
  - `description` string, nullable
  - `monitor_type` string
  - `query_provider` 'postgres' | 'telemetry'
  - `evaluation_interval_seconds` integer
  - `notification_channel_id` string, nullable
  - `options` object, nullable
  - `chat_id` string, nullable
  - `auto_investigate` boolean
  - `approval_mode` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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