const url = 'https://app.monitorly.cloud/api/v1/projects/PROJECT_ID/check-tests';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"check":{"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"]}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.monitorly.cloud/api/v1/projects/PROJECT_ID/check-tests \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "check": { "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" ] } }'Runs a check once on each of its locations without saving anything, for example before creating it or after a deploy. check is validated as for Create a check; checkId lets the test use the stored secrets of a saved check. The answer comes at once with every location pending: poll Get a check test for the results. Heartbeat checks cannot be tested.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The project’s id.
Example
PROJECT_IDRequest Bodyrequired
Section titled “Request Bodyrequired”object
The check as the editor shows it, validated like a create; nodes are the nodes to run it on.
object
The escalation policy of the check’s incidents instead of the project’s; absent or null: the project’s.
Required except for heartbeat checks, whose schedule is kind.periodSecs.
object
object
object
object
Header names compare case-insensitively; a missing header is the empty string.
object
One value of a JSON body, selected by a JSONPath singular query ($.data.items[0].status); value
is ignored by exists and not_exists.
object
How a JSON assertion compares the value its path selects.
Response time above this marks the run DEGRADED.
object
object
object
Every listed value must be in the answer; empty means any answer passes.
Resolver address; absent uses the node’s system resolver.
object
Days before expiry with a warning; default 14, 7 and 1.
object
Days before expiry with a warning; default 30 and 7.
object
A ping is due every period. With schedule it is not read and may be left out; answers always give
it, as the shortest gap between the schedule’s next occurrences.
object
A container that was running stopped with a non-zero exit code, was killed for lack of memory or died, or restarted 3 times within 10 minutes (the node must report Docker). Preset: on.
Any filesystem fuller than abovePercent (df’s “Use%”); a mount of mounts may have its own. Preset:
above 90 %, at once. Clears 2 points below.
object
1–99.
How long the value must stay above; 0: at once. At most 86400.
A disk busy busyPercent of the time with queue requests in flight or more. Off unless set; suggested:
95 % and 10 for 30 minutes.
object
1–100.
1–1000 requests in flight on average.
A filesystem fuller than minUsedPercent that fills within hours at the rate of the last 6 hours.
Preset: within 24 hours, above 60 %, held 1 hour.
object
1–720.
1–99: fuller filesystems only.
Names the rules leave alone, at most 50 per list; * stands for any run of characters (build-*). Sensors
are named <chip>/<label> (coretemp/Core 0) or by their chip alone.
object
Filesystems with their own disk rule, at most 32, each mount once.
One filesystem’s own disk rule: its own threshold, optionally only while less than freeBelowGb is free,
or muted (no disk, inode, forecast or read-only problem for it).
object
1–99; absent: the check’s disk threshold.
1–1000000 GB (10⁹ bytes): only while less than this is free.
An absolute mount path, for example /var/lib/docker.
A notice when the kernel kills a process for lack of memory (at most one per 30 minutes). Preset: on.
A filesystem this check saw writable turned read only. Preset: on.
A temperature sensor at its own limit (its max, else 5 °C under its critical point; one under 40 °C counts
as none), or at or above celsius when it reports no limit. Preset: 90 °C for 10 minutes. Clears 3 °C
below.
object
30–150 °C, for sensors that report no limit of their own.
A notice when a Raspberry Pi reports under-voltage. Preset: on.
A systemd unit the node reports is failed (the node must report systemd). Preset: on.
Nodes that run the check; none for heartbeat checks.
The saved check being edited, whose stored secrets {"kind": "secret", "secretId": …} may use.
Example
{ "check": { "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" ] }}Responses
Section titled “Responses”The test, with every location pending.
object
The check’s timeout + 5 s after the start.
running until every node answered or the deadline passed.
In the order of check.nodes.
object
SSL checks: the certificate’s expiry.
Domain checks: the registration’s expiry.
object
Index of the failed assertion; null for the implicit 2xx/3xx rule.
Example
{ "deadline": "2026-11-27T15:10:15Z", "done": false, "id": "TEST_ID", "projectId": "PROJECT_ID", "results": [ { "failures": [], "nodeId": "NODE_ID_HEL", "status": "pending" }, { "failures": [], "nodeId": "NODE_ID_FRA", "status": "pending" }, { "failures": [], "nodeId": "NODE_ID_AMS", "status": "pending" } ], "startedAt": "2026-11-27T15:10:00Z"}Bad Request.
request.malformed: the body or a parameter is not of the expected shapeauth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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 endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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 thistoken.scope_missing: the token lacks the scope this needs;detailnames itrequest.origin_mismatch,request.header_required: a changing request with a session comes from another site or lacksX-Monitorly-Request: 1
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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;errorspoints at itcheck_test.not_runnable: a heartbeat check waits for pings and cannot be checked on nodescheck.node_unavailable: node does not exist, is revoked, or is a private node of another workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
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 tokensession.rate_limited: more than 5 changes a second from your sessionscheck_test.busy: a test of this check by you is already running, or the project already runs 3 tests;Retry-Afterin secondscheck_test.rate_limited: more than 20 tests in 10 minutes by you or in the workspace; waitRetry-Afterseconds
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Headers
Section titled “Headers”Seconds to wait before trying again.