Skip to content

Overview

The REST API of Monitorly Cloud: checks, incidents, maintenance windows, status pages, alert channels, nodes, servers and everything else the dashboard does.

  • Authentication. Scripts, CI and agents send a personal API token as Authorization: Bearer mly_…. Each operation lists the scope a token needs; operations that list only session work only from a signed-in dashboard session and refuse tokens with 403 token.not_allowed.
  • Errors are application/problem+json with a stable code in type; branch on it, never on detail.
  • Lists that page return {items, nextCursor}: pass nextCursor back as cursor. Lists that answer an array return everything at once.
  • Retries. Creating operations that take an Idempotency-Key header say so; a retry with the same key returns the first answer.
  • Limits. A token makes at most 10 requests a second (bursts of 30) and creates at most 30 resources an hour; over that, 429 with Retry-After.

Information

  • License: UNLICENSED
  • OpenAPI version: 3.1.0

A personal API token, made in the dashboard under Settings → API tokens and shown once. It acts as its creator with their role at the time of each request, limited to its scopes and, when it names one, to one project. GET needs the …:read scope of its area, other methods the …:write one; :write does not include :read. A request carries either a token or the session cookie, never both.

Security scheme type: http

Bearer format: mly_ and 43 letters and digits

OAuth 2.1 with PKCE, as the monitorly CLI signs in (monitorly login). On this API only the CLI’s own sign-ins are accepted; other agents’ OAuth sign-ins work on the MCP server.

Security scheme type: oauth2

Flow type: authorizationCode

Authorization URL: https://app.monitorly.cloud/oauth/authorize

Token URL: https://app.monitorly.cloud/oauth/token

Refresh URL: https://app.monitorly.cloud/oauth/token

Scopes:

  • alerts:read - Read alert channels and escalation policies
  • alerts:write - Change alert channels, escalation policies and which policy a project or check uses
  • checks:read - Read checks, runs, response times, uptime reports and test results
  • checks:write - Create, change, pause, test and delete checks
  • incidents:read - Read incidents and draft posts for them
  • incidents:write - Acknowledge incidents
  • maintenance:read - Read maintenance windows
  • maintenance:write - Create, change and delete maintenance windows
  • nodes:read - Read nodes and servers
  • nodes:write - Make join tokens, revoke nodes, set their location
  • pages:read - Read status pages and their posts
  • pages:write - Change status pages and post incidents
  • projects:write - Create projects
  • telegram:read - Read linked Telegram chats

The dashboard’s signed-in session. Changing requests with it must come from the dashboard’s origin and carry X-Monitorly-Request: 1.

Security scheme type: apiKey

Cookie parameter name: __Host-monitorly_session