const url = 'https://app.monitorly.cloud/api/v1/checks/CHECK_ID/sla';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.monitorly.cloud/api/v1/checks/CHECK_ID/sla \ --header 'Authorization: Bearer <token>'Uptime, downtime, incidents, mean time to acknowledge and mean time to recover of one check over a calendar month (month, in the workspace time zone) or a range (from and to). Without them, the current month.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The check’s id.
Example
CHECK_IDQuery Parameters
Section titled “Query Parameters”YYYY-MM: the calendar month in the workspace timezone. Without month, from and to, the
current month.
RFC 3339, together with to; not with month.
RFC 3339, together with from; at most 367 days after it.
Responses
Section titled “Responses”The report.
object
One row per check, by name; for a check report only that check.
object
Of incidents, those acknowledged by now.
Downtime: DOWN time, the only time that counts against uptime.
Incidents opened in the range.
Excluded from uptime.
Mean time to acknowledge over acknowledged; null without any.
Mean time to resolve over resolved; null without any.
No decision yet, or too few nodes had data; excluded from uptime.
Of incidents, those closed by now.
Excluded from uptime.
(up + degraded) / (up + degraded + down) × 100; null when nothing in the range was decided.
Time after this (now, when the range reaches into the future) is not measured yet.
The workspace timezone the month was taken in.
For a check report equal to its row.
object
Of incidents, those acknowledged by now.
Downtime: DOWN time, the only time that counts against uptime.
Incidents opened in the range.
Excluded from uptime.
Mean time to acknowledge over acknowledged; null without any.
Mean time to resolve over resolved; null without any.
No decision yet, or too few nodes had data; excluded from uptime.
Of incidents, those closed by now.
Excluded from uptime.
(up + degraded) / (up + degraded + down) × 100; null when nothing in the range was decided.
Example
{ "checks": [ { "acknowledged": 1, "checkId": "CHECK_ID", "checkName": "payments-health", "degradedMs": 0, "downMs": 450000, "incidents": 1, "maintenanceMs": 0, "mttaMs": 95000, "mttrMs": 450000, "noDataMs": 0, "resolved": 1, "unknownMs": 0, "upMs": 2591550000, "uptimePercent": 99.983 } ], "from": "2026-10-31T23:00:00Z", "measuredTo": "2026-11-30T23:00:00Z", "projectId": "PROJECT_ID", "timezone": "Europe/Berlin", "to": "2026-11-30T23:00:00Z", "total": { "acknowledged": 1, "degradedMs": 0, "downMs": 450000, "incidents": 1, "maintenanceMs": 0, "mttaMs": 95000, "mttrMs": 450000, "noDataMs": 0, "resolved": 1, "unknownMs": 0, "upMs": 2591550000, "uptimePercent": 99.983 }}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 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"}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"}Unprocessable Entity.
field.invalid,field.required: a parameter breaks a rule;errorspoints at itrequest.invalid_range:fromis not earlier thanto
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 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"}Headers
Section titled “Headers”Seconds to wait before trying again.