Skip to content

Plan a configuration

POST
/api/v1/projects/{projectId}/config/plan
curl --request POST \
--url https://app.monitorly.cloud/api/v1/projects/PROJECT_ID/config/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "checks": [ { "intervalSecs": 30, "kind": { "assertions": [ { "op": "eq", "target": "status", "value": 200 }, { "op": "equals", "path": "$.db", "target": "json", "value": "ok" } ], "maxRedirects": 0, "method": "GET", "type": "http", "url": "https://api.acme.io/healthz" }, "name": "payments-health", "nodes": [ "NODE_ID_HEL", "NODE_ID_FRA", "NODE_ID_AMS" ], "ref": "payments-health" } ], "prune": false }'

Compares a monitorly.yaml body with the project and stores the plan for 15 minutes: what would be created, changed and deleted. Nothing changes until Apply a plan. A token needs the write scope of every section in the body. Needs the editor role.

projectId
required
string format: uuid

The project’s id.

Example

PROJECT_ID
Media typeapplication/json

The desired state of one project: monitorly.yaml. Every section is optional; an absent section is left as it is.

object
$schema

The JSON Schema of this document, for editors; ignored.

string | null
checks
Array<object> | null

A check as CheckInput (same fields, defaults and rules), keyed by ref; secret headers by name.

object
downAfter
integer format: int32
escalationPolicyId

The check’s own escalation policy (GET /workspaces/{id}/escalation-policies); absent: the project’s.

string | null format: uuid
intervalSecs

Required except for heartbeat checks, whose schedule is kind.periodSecs.

integer | null format: int32
kind
required
One of:
object
assertions

null is read as absent (only the implicit 2xx/3xx rule).

Array | null
One of:
object
op
required
string
Allowed values: eq ne lt le gt ge
target
required
string
Allowed values: status
value
required
integer format: int32
body
string | null
degradedAfterMs
integer | null format: int32
headers

null is read as absent (no headers).

Array<object> | null

A request header: exactly one of value (plain) and secret.

object
name
required
string
secret
One of:
One of:
string
Allowed values: keep
value
string | null
maxRedirects
required
integer format: int32
method
required
string
Allowed values: GET HEAD POST PUT PATCH DELETE OPTIONS
url
required
string
type
required
string
Allowed values: http
muted
boolean
name
required
string
nodes

Node ids (GET /workspaces/{id}/nodes); none for heartbeat checks. null is read as absent.

Array<string> | null
quorum
One of:

F ≥ ⌈M/2⌉ and F ≥ min(2, S).

object
mode
required
string
Allowed values: half
ref
required

^[a-z0-9][a-z0-9-]{0,62}$, unique among the project’s checks.

string
timeoutMs
integer format: int32
upAfter
integer format: int32
maintenance
Array<object> | null

A maintenance window keyed by ref, over checks named by ref.

object
checks
required

refs of checks of the project.

Array<string>
ref
required
string
schedule
required
One of:

RFC 3339 instants.

object
endsAt
required
string
kind
required
string
Allowed values: once
startsAt
required
string
timezone

IANA zone; the workspace’s when absent.

string | null
title
required
string
prune

Delete, in the present sections, resources managed by config that the body no longer lists.

boolean
statusPages
Array<object> | null

A status page keyed by ref. The website link, accent and logos stay with the project admin in the dashboard and are not part of the config; the theme is (contract of 2026-11-29), and changing it needs a project admin.

object
components

In display order; replaces the page’s components. null is read as absent.

Array<object> | null
object
check
required

The ref of a check of the project (in this body or stored).

string
group
string | null
name

1–200 characters. Absent or the check’s own name: the component follows the check’s name.

string | null
ref
required

Unique on the page.

string
published
boolean
ref
required
string
slug
required

^[a-z0-9][a-z0-9-]{1,62}$, unique in the installation.

string
theme
One of:

The hosted page’s theme, as in PATCH /status-pages/{pageId}: absent keeps the stored one, null is the product’s own look. Changing it needs a project admin (403 otherwise). Exports name it only when set.

object
dark
One of:

The colours of the dark scheme; the product’s own when left out.

object
background
required

Behind the page.

string
border
required

Lines between rows and around panels.

string
muted
required

Secondary text and field edges: at least 3:1 on background and on surface.

string
surface
required

Panels, cards and the header.

string
text
required

Text: at least 4.5:1 on background and on surface.

string
font
One of:

The page’s text face. Every one but system is served by status-web itself (OFL fonts, no third-party requests); system uses the visitor’s own interface font.

string
Allowed values: system inter ibm-plex-sans geist jetbrains-mono space-grotesk source-serif
layout
One of:

list when left out.

string
Allowed values: list compact
light
One of:

The colours of the light scheme; the product’s own when left out.

object
background
required

Behind the page.

string
border
required

Lines between rows and around panels.

string
muted
required

Secondary text and field edges: at least 3:1 on background and on surface.

string
surface
required

Panels, cards and the header.

string
text
required

Text: at least 4.5:1 on background and on surface.

string
links

Up to 5 links in the page header, in this order.

Array<object>

A link in the page header, between the page name and the website link.

object
label
required

1–32 characters on one line.

string
url
required

An absolute http or https URL with a host, at most 2048 characters.

string
mode
One of:

auto when left out.

string
Allowed values: auto light dark
radius
One of:

medium when left out.

string
Allowed values: none small medium large
title
required
string

Example

{
"checks": [
{
"intervalSecs": 30,
"kind": {
"assertions": [
{
"op": "eq",
"target": "status",
"value": 200
},
{
"op": "equals",
"path": "$.db",
"target": "json",
"value": "ok"
}
],
"maxRedirects": 0,
"method": "GET",
"type": "http",
"url": "https://api.acme.io/healthz"
},
"name": "payments-health",
"nodes": [
"NODE_ID_HEL",
"NODE_ID_FRA",
"NODE_ID_AMS"
],
"ref": "payments-health"
}
],
"prune": false
}

The plan.

Media typeapplication/json
object
appliedAt

When the plan was applied; null until then. Always sent; optional in the schema because it was added after the first clients.

string | null
changes
required
Array<object>
object
action
required
string
Allowed values: create update delete unchanged
diff
required
Array<object>

One field that differs, by JSON pointer into the resource’s config form; null for an absent side.

object
after
required

Any JSON value.

before
required

Any JSON value.

path
required
string
id

The stored resource; null for creations.

string | null format: uuid
ref
required
string
resourceType
required
string
Allowed values: check status_page maintenance
warnings
required
Array<object>

Something to look at before applying. code: config.drift (changed outside the config since the last apply; apply overwrites it), config.adopts_unmanaged (a resource made in the dashboard becomes managed by config), config.unmanaged_same_name (a new resource has the name of one made in the dashboard).

object
code
required
string
message
required
string
expiresAt
required

Apply before this instant.

string
planId
required
string format: uuid
projectId
required
string format: uuid
prune
required
boolean
summary
required
object
create
required
integer format: int32
delete
required
integer format: int32
unchanged
required
integer format: int32
update
required
integer format: int32

Example

{
"changes": [
{
"action": "update",
"diff": [
{
"after": 30,
"before": 60,
"path": "/intervalSecs"
}
],
"id": "CHECK_ID",
"ref": "payments-health",
"resourceType": "check",
"warnings": []
}
],
"expiresAt": "2026-11-27T16:30:00Z",
"planId": "PLAN_ID",
"projectId": "PROJECT_ID",
"prune": false,
"summary": {
"create": 0,
"delete": 0,
"unchanged": 0,
"update": 1
}
}

Bad Request.

  • request.malformed: the body or a parameter is not of the expected shape
  • auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unauthorized.

  • auth.unauthenticated, auth.session_expired: no session, or it ended
  • token.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Forbidden.

  • auth.forbidden: your role is too low for this
  • token.scope_missing: the token lacks the scope this needs; detail names it
  • request.origin_mismatch, request.header_required: a changing request with a session comes from another site or lacks X-Monitorly-Request: 1
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Not Found.

  • request.not_found: it does not exist, or you cannot see it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Payload Too Large.

  • request.too_large: the body is larger than 256 KiB
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unprocessable Entity.

  • field.required, field.too_long, field.invalid: a field breaks a rule; errors points at it
  • config.ref_invalid: ref does not match ^[a-z0-9][a-z0-9-]{0,62}$
  • config.ref_duplicate: ref is repeated in a plan section (for components, on a page)
  • config.ref_unknown: reference to a check by a ref that exists neither in the plan nor in the project
  • config.plan_too_large: body has more than 300 resources or a page has more than 300 components (params.max)
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Too Many Requests.

  • token.rate_limited: more than 10 requests a second with this token
  • session.rate_limited: more than 5 changes a second from your sessions
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}
Retry-After
integer
>= 1

Seconds to wait before trying again.