---
title: "Monitor Setup Endpoint"
method: POST
path: "/v1/monitors/setup"
tags: ["watches"]
---

# Monitor Setup Endpoint

`POST /v1/monitors/setup`

## Request

- Base URL: `https://api.actionbox.cloud`
- URL: `https://api.actionbox.cloud/v1/monitors/setup`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `actionbox_session`

## Headers

- `x-user-id` string, nullable
- `authorization` string, nullable
- `X-Actionbox-Client` string, nullable

## Cookies

- `actionbox_session` string, nullable

## Request body

- MonitorSetupCreate
  - `setup_key` string, uuid, required
  - `source_name` string, nullable
  - `watch` WatchCreate, required
    - `source_id` string, nullable
    - `name` string, required
    - `schedule_type` 'interval' | 'cron', required
    - `interval_seconds` integer, nullable
    - `cron_expression` string, nullable
    - `timezone` string
    - `grace_seconds` integer
    - `max_runtime_seconds` integer, nullable
    - `priority` 'low' | 'normal' | 'high' | 'urgent'
    - `runbook_url` string, uri, nullable
    - `signal_method` 'any' | 'post'

## Response `201`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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