---
title: "Post Monitor"
method: POST
path: "/monitors"
tags: ["signals"]
---

# Post Monitor

`POST /monitors`

## Request

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

Create a monitor: subscribe to a signal, optionally watching one or more values.

## Headers

- `api-key` string, nullable

## Request body

- MonitorCreate
  - `signal` string, required
  - `watch` unknown
  - `url` string, required
  - `secret` string, nullable
  - `filters` object, nullable
  - `target` TargetSpec
    - `type` string, required
    - `value` string, nullable
    - `key` string, nullable
  - `targets` TargetSpec[], nullable
    - `type` string, required
    - `value` string, nullable
    - `key` string, nullable

## Response `201`

Successful Response

- MonitorResponse
  - `id` integer, required
  - `signal` string, required
  - `watch` string[]
  - `url` string, required
  - `active` boolean, required
  - `created_at` string, required
  - `filters` object, nullable

## Other responses

- `422`: Validation Error

---

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