Skip to content

Export a project's configuration

GET
/api/v1/projects/{projectId}/config
curl --request GET \
--url https://app.monitorly.cloud/api/v1/projects/PROJECT_ID/config \
--header 'Authorization: Bearer <token>'

The project’s checks, status pages and maintenance windows in the shape of monitorly.yaml. A token gets the sections it has a read scope for (checks:read, pages:read, maintenance:read). Resources without a ref get one made from their name.

projectId
required
string format: uuid

The project’s id.

Example

PROJECT_ID

The configuration.

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": [
{
"escalationPolicyId": "ESCALATION_POLICY_ID",
"kind": {
"assertions": [
{
"op": "eq",
"target": "status"
}
],
"headers": [
{
"secret": "keep"
}
],
"method": "GET",
"type": "http"
},
"nodes": [
"ID"
],
"quorum": {
"mode": "half"
}
}
],
"maintenance": [
{
"schedule": {
"kind": "once"
}
}
],
"statusPages": [
{
"theme": {
"font": "system",
"layout": "list",
"mode": "auto",
"radius": "none"
}
}
]
}

Bad Request.

  • 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
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"
}

Too Many Requests.

  • token.rate_limited: more than 10 requests a second with this 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"
}
Retry-After
integer
>= 1

Seconds to wait before trying again.