REST API
The REST API is the same API the web app uses. This page documents the endpoints that API tokens can reach. Other endpoints (sign-in, members, billing, account) exist for the app, are not documented here and may change.
Base URL
Section titled “Base URL”https://api.cronbeat.dev/apiPings, the agent APIs and badges use the same host, https://api.cronbeat.dev, see
Ping endpoints, Agent API (Kubernetes) and
Host agent API.
Ping URLs also take up to 5 optional m_<name> number parameters, see Metrics.
All bodies are JSON (Content-Type: application/json). Field names are camelCase. Times are ISO 8601 in UTC
(2026-10-03T02:00:00Z). Fields without a value are usually omitted from responses. IDs are UUIDs.
Authentication
Section titled “Authentication”| Method | How | CSRF |
|---|---|---|
| API token (use this for scripts) | Authorization: Bearer cb_pat_... |
not needed |
| Session cookie (the web app) | Cookie set at sign-in | required: send the XSRF-TOKEN cookie value in the X-XSRF-TOKEN header on every POST, PUT and DELETE |
Create tokens in the app, see API tokens. A token belongs to one project and has a role
(viewer, member or admin). A missing or invalid token answers 401.
Choosing the project
Section titled “Choosing the project”A session user can belong to several projects and picks one with the header X-Project-Id: <project uuid>. Without
it the default (oldest) project is used. An API token is fixed to its project: the header is optional and a
different project id answers 404.
Paths a token may reach
Section titled “Paths a token may reach”/api/monitors, /api/channels, /api/maintenance-windows, /api/status-pages, /api/incidents, /api/agents,
/api/schedule/preview and /api/project. Everything else answers 403.
Roles per endpoint
Section titled “Roles per endpoint”The role needed is the minimum. The role of a token is checked the same way as the role of a person, see
Members and roles. A resource of another project answers 404, a role that is too low 403.
| Role | Endpoints |
|---|---|
| viewer | every GET below, POST /api/schedule/preview |
| member | create, update, delete, pause, resume, rotate key and badge of monitors, all write calls on maintenance windows |
| admin | write calls on channels, agents and status pages (including incidents and appearance), PUT /api/project |
Errors
Section titled “Errors”Errors use application/problem+json (RFC 7807). There is never a stack trace.
{ "type": "about:blank", "title": "Forbidden", "status": 403, "detail": "Monitor limit reached for your plan (5)", "code": "plan_limit_exceeded"}| Status | Meaning |
|---|---|
400 |
Validation failed. detail says what is wrong. Bean validation errors have detail: "Validation failed" and an errors object {"field": "message"}. |
401 |
No valid session or token. |
403 |
Role too low, token not allowed on this path, or plan limit. A plan limit has the extra property code: "plan_limit_exceeded". |
404 |
Not found, or it belongs to another project (existence is never revealed). |
409 |
Conflict, for example a status page address that is taken. |
429 |
Rate limit exceeded. |
502 |
A channel test could not be delivered. detail has the reason. |
500 |
Unexpected error, detail is Unexpected error. |
Rate limits
Section titled “Rate limits”These limits are enforced by the server: POST /api/channels/{id}/test is limited to 10 per minute per
user or token. Public status pages (120 per minute) and badges (300 per minute) are limited per IP address, and
pings per key and per IP. There is no general request limit on the other endpoints, but please keep scripts polite.
Paging
Section titled “Paging”List calls that can grow are paged: GET /api/monitors, /api/monitors/{id}/pings, /api/monitors/{id}/incidents,
/api/channels, /api/maintenance-windows, /api/members, /api/invitations, /api/api-tokens, /api/inbox and
/api/audit-log. Pass page (from 0, default 0) and size (default 20, at most 100; larger values are cut to 100,
the audit log defaults to 25). The answer is an object:
{ "items": [], "page": 0, "size": 20, "total": 0, "totalPages": 0 }A page beyond the last one is empty, not an error. GET /api/monitors/options and GET /api/channels/options are not
paged: they return every item with the few fields a picker needs.
Monitors
Section titled “Monitors”The monitor object
Section titled “The monitor object”| Field | Notes |
|---|---|
id, name, description |
|
pingKey, pingPath |
The key and /ping/<key>. Not returned to viewers. |
scheduleType |
interval or cron. |
intervalSeconds, cronExpr, timezone |
Schedule. |
graceSeconds, maxRuntimeSeconds |
|
status |
new, up, running, late, down, paused. |
statusChangedAt, lastPingAt, lastSuccessAt, lastStartedAt, lastDurationMs |
|
nextExpectedAt, deadlineAt |
|
source |
ping, http, k8s_agent or host_agent. |
externalRef |
Reference of agent managed monitors. |
pausedReason |
For example manual or plan limit. |
alertsSuppressed |
true while the monitor’s agent is lost. |
inMaintenance |
true inside an active maintenance window. |
channelIds |
Attached channels. |
httpUrl, httpMethod, httpExpectedStatus, httpSslWarnDays, httpExpectedText, httpForbiddenText |
HTTP checks only. |
httpCertNotAfter, httpCertIssuer, httpCertCheckedAt |
HTTPS checks only: expiry date, issuer and time of the last certificate reading (may be missing before the first successful check). See Certificate warning. |
slowRunFactor |
Slow run alerts only. |
badgeKey |
Set while the badge is enabled. |
createdAt |
GET /api/monitors
Section titled “GET /api/monitors”Query: status (one of the statuses), q (name contains, case insensitive), source (ping, http, k8s_agent or host_agent), cluster (a Kubernetes cluster name, use it with source=k8s_agent). Also sort, desc, page and size, see Paging. Returns a page object.
curl -sS "https://api.cronbeat.dev/api/monitors?status=down" \ -H "Authorization: Bearer cb_pat_YOUR_TOKEN"POST /api/monitors and PUT /api/monitors/{id}
Section titled “POST /api/monitors and PUT /api/monitors/{id}”Create returns 201. PUT replaces all settings, send the full body again.
| Field | Rule |
|---|---|
name |
Required, up to 100 characters. |
description |
Up to 500 characters. |
scheduleType |
Required: interval or cron. |
intervalSeconds |
For interval: at least the plan minimum (300 on Free, 30 on Pro and Enterprise). |
cronExpr |
For cron: five fields or a macro, see Cron expressions. |
timezone |
IANA name, default UTC. |
graceSeconds |
0 to 604800, default 300. |
maxRuntimeSeconds |
1 to 86400, optional. |
channelIds |
Channels of the project, otherwise 400 Unknown channel. |
slowRunFactor |
1.5 to 50. Needs a plan with slow run alerts, see Slow run alerts. |
http |
Makes the monitor an HTTP check: url (required), method (GET or HEAD), expectedStatus (100 to 599), sslWarnDays (0 to 90, default 14), expectedText (the response body must contain it) and forbiddenText (the response body must not contain it). Both texts are optional, case-sensitive and up to 200 characters, and need method GET: with HEAD the request fails with 400 Text checks need the GET method. See HTTP checks. Needs scheduleType: "interval" and graceSeconds of at least 60. With url tcp://host:port it is a TCP check; with dns://name a DNS check, where method is the record type (A, AAAA, CNAME, MX, NS, TXT) and expectedText the value the answer must contain. |
The kind (ping or HTTP check) cannot be changed with PUT. For monitors managed by an agent (Kubernetes or host) only name,
description, grace period, maximum runtime, slow run factor and channels change. On a host agent monitor the schedule, time zone and name
belong to the cronbeat run command line: a name changed here is set back by the next run.
curl -sS -X POST https://api.cronbeat.dev/api/monitors \ -H "Authorization: Bearer cb_pat_YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Nightly backup", "scheduleType": "cron", "cronExpr": "0 2 * * *", "timezone": "Europe/Istanbul", "graceSeconds": 600, "maxRuntimeSeconds": 3600, "channelIds": ["CHANNEL_UUID"] }'Beyond the monitor limit: 403 with code: plan_limit_exceeded.
Other monitor endpoints
Section titled “Other monitor endpoints”| Call | Role | Description |
|---|---|---|
GET /api/monitors/sources |
viewer | How many monitors each source has: ping, http, k8sAgent, hostAgent and clusters (name and count per Kubernetes cluster). |
GET /api/monitors/{id} |
viewer | One monitor. |
DELETE /api/monitors/{id} |
member | 204. |
POST /api/monitors/{id}/pause |
member | Returns the monitor. |
POST /api/monitors/{id}/resume |
member | Returns the monitor. 403 plan_limit_exceeded while over the plan limit. |
POST /api/monitors/{id}/rotate-key |
member | New ping key, the old URL stops at once. 400 for agent managed monitors. |
POST /api/monitors/{id}/badge |
member | Enable the badge (creates a new key). |
DELETE /api/monitors/{id}/badge |
member | Disable the badge. |
GET /api/monitors/{id}/pings |
viewer | Ping history. Query page, size (see Paging), type (start, success, fail, log). Items: id, type, receivedAt, durationMs, bodySnippet, sourceIp, userAgent. |
GET /api/monitors/{id}/incidents |
viewer | Incident history. Query page, size (see Paging). Items: id, openedAt, resolvedAt, reason, detail, reminderCount. |
GET /api/monitors/{id}/stats |
viewer | Uptime, bucket grid, run time statistics (avgMs, minMs, maxMs, p95Ms) and run counts. Query range: 24h (default), 7d, 90d. |
GET /api/monitors/summary |
viewer | Project wide totals, counts by status, ping totals and uptime per monitor. Same range. |
curl -sS -X POST https://api.cronbeat.dev/api/monitors/MONITOR_UUID/pause \ -H "Authorization: Bearer cb_pat_YOUR_TOKEN"Incidents
Section titled “Incidents”| Call | Role | Description |
|---|---|---|
GET /api/incidents/recent |
viewer | Activity feed of the project, newest first. Query limit (default 20, max 200). Items: id (incident), type (opened or resolved), at, targetName, targetType (monitor or agent), monitorId, reason, detail. |
reason is missed, failed, too_long or agent_lost.
Incident autopsy
Section titled “Incident autopsy”| Call | Role | Description |
|---|---|---|
GET /api/incidents/{id}/autopsy |
viewer | Why the incident happened: reason, detail, openedAt, resolvedAt, firstFailureAt, lastSuccessAt, failureStreak, typicalMs, findings (code, text), output (shortened text of the newest failed run) and suggestions. Times and numbers are omitted when unknown. An incident of another project answers 404. See Why did it happen?. |
Run facts
Section titled “Run facts”| Call | Role | Description |
|---|---|---|
GET /api/monitors/{id}/run-facts |
viewer | What the newest finished runs (at most 50) say: finishedRuns, successRate (percent), typicalMs (median of the 20 newest successful durations), p90Ms, trendPercent (the 10 newest durations against the 10 before, needs 20 durations), failureStreak, firstFailureAt, lastSuccessAt, lastSuccessDurationMs. Unknown values are omitted. |
Success-run checks
Section titled “Success-run checks”See Success-run checks. Only monitors fed by pings (source is ping) can have conditions; HTTP checks, Kubernetes, host agent and GitHub Actions monitors answer 400.
| Call | Role | Description |
|---|---|---|
GET /api/monitors/{id}/assertions |
viewer | The conditions as a bare JSON array: [{"metric": "rows", "operator": "gt", "threshold": 0}]. |
PUT /api/monitors/{id}/assertions |
member | Replaces the whole set with the array in the body. At most 5 conditions, each metric and operator pair once. metric: lowercase letters, digits and _, starts with a letter, up to 32 characters. operator: gt, gte, lt, lte, eq or ne. threshold: a number between -1e15 and 1e15. 400 for an invalid condition, 403 with plan_limit_exceeded without the plan feature. |
DELETE /api/monitors/{id}/assertions |
member | Removes all conditions, 204. |
A monitor of another project answers 404.
Delivery time
Section titled “Delivery time”See Delivery time warning. Needs a plan with slow run alerts to set.
| Call | Role | Description |
|---|---|---|
GET /api/monitors/{id}/deliver-by |
viewer | {"time": "07:00"}, time is null when none is set. |
PUT /api/monitors/{id}/deliver-by |
member | Body {"time": "07:00"}, HH:mm in the time zone of the monitor. 400 for another format and for an HTTP check, 403 with plan_limit_exceeded without the plan feature. |
DELETE /api/monitors/{id}/deliver-by |
member | 204, also when none was set. |
Escalation, acknowledge and snooze
Section titled “Escalation, acknowledge and snooze”See Escalation and acknowledge for what they do.
| Call | Role | Description |
|---|---|---|
GET /api/monitors/{id}/escalation |
viewer | {"afterMinutes": 15, "channelIds": [...]}; afterMinutes is null and channelIds empty without escalation. |
PUT /api/monitors/{id}/escalation |
member | Body as above. afterMinutes 1 to 1440 and at least one channel of the project, otherwise 400. Returns the saved setting. |
DELETE /api/monitors/{id}/escalation |
member | 204, also when there was none. |
POST /api/incidents/{id}/acknowledge |
member | Returns the incident (id, openedAt, resolvedAt, reason, detail, reminderCount, acknowledgedAt, snoozedUntil, escalatedAt). Idempotent. 409 when the incident is resolved. |
POST /api/incidents/{id}/snooze |
member | Body {"minutes": 60}; allowed values 60, 240, 1440, otherwise 400. Mutes the reminders until then. |
An incident of another project answers 404. The incident list of a monitor (GET /api/monitors/{id}/incidents) carries
acknowledgedAt, snoozedUntil and escalatedAt; it never names who acknowledged.
Channels
Section titled “Channels”| Call | Role | Description |
|---|---|---|
GET /api/channels |
viewer | Page of channels. |
POST /api/channels |
admin | Create, 201. |
GET /api/deliveries |
viewer | Page of sent, failed and left-out messages. Filters status and channelId, see delivery history. |
PUT /api/channels/{id}/rules |
admin | Severity and quiet hours of a channel, see rules. |
DELETE /api/channels/{id} |
admin | 204. |
POST /api/channels/{id}/test |
admin | Sends a test message. Answers {"success": true}, or 502. Needs a verified owner email. |
Channel object: id, type, name, config (masked: URLs end in …xxxx, secrets are ********), verified
(email channels are unverified until the owner’s email is verified), createdAt.
Create body: type, name (up to 100) and config, a map of text values:
type |
config |
|---|---|
email |
{"address": "owner@example.com"}, must be the project owner’s email, may be omitted. |
slack |
{"url": "https://hooks.slack.com/..."} |
discord |
{"url": "https://discord.com/api/webhooks/..."} |
teams |
{"url": "https://..."} |
webhook |
{"url": "https://...", "secret": "optional signing secret"} |
telegram |
{"botToken": "...", "chatId": "..."} |
pagerduty |
{"routingKey": "..."} |
A type that is not in the plan, or too many channels: 403 plan_limit_exceeded. Details per type:
Channels and delivery.
curl -sS -X POST https://api.cronbeat.dev/api/channels \ -H "Authorization: Bearer cb_pat_YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"type": "webhook", "name": "Ops hook", "config": {"url": "https://ops.example.com/cronbeat", "secret": "CHANGE_ME"}}'Maintenance windows
Section titled “Maintenance windows”| Call | Role | Description |
|---|---|---|
GET /api/maintenance-windows |
viewer | Page of windows. |
POST /api/maintenance-windows |
member | Create, 201. |
PUT /api/maintenance-windows/{id} |
member | Replace. |
DELETE /api/maintenance-windows/{id} |
member | 204. |
Body: name (1 to 80), kind (once or weekly), allMonitors (boolean), monitorIds and agentIds (the monitors and Kubernetes
clusters covered; at least one of the two is needed when allMonitors is false). For once: startsAt, endsAt. For weekly: weekdays (1 Monday to 7 Sunday),
startTime (HH:mm), durationMinutes (5 to 1440), timezone. Rules: Maintenance windows.
announce (boolean, optional): show the window on the status pages it covers. When it is missing on an update the saved value is kept.
Response adds id, active (inside the window right now), announce and createdAt.
Status pages
Section titled “Status pages”| Call | Role | Description |
|---|---|---|
GET /api/status-pages |
viewer | List. |
POST /api/status-pages |
admin | Create, 201. 409 if the address is taken. |
PUT /api/status-pages/{id} |
admin | Replace. |
POST /api/status-pages/{id}/verify-domain |
admin | Checks the DNS TXT record of the custom domain. 409 while it is not found. |
DELETE /api/status-pages/{id} |
admin | 204. |
Body: slug, title, description, enabled, monitors (array of {"monitorId": "...", "displayName": "...", "group": "...", "description": "..."},
1 to 50; displayName up to 80, group up to 40 and description up to 200 characters, all optional). The optional customDomain (Enterprise) adds customDomain {name, verified, txtName, txtValue, cnameTarget} to the response. The response also adds id, url and createdAt. Rules: Status pages.
Status page incidents
Section titled “Status page incidents”| Call | Role | Description |
|---|---|---|
GET /api/status-pages/{id}/incidents |
viewer | The incidents of the page, newest first (at most 50), each with its updates. |
POST /api/status-pages/{id}/incidents |
admin | Open an incident, 201. 409 when 20 incidents are already open. |
POST /api/status-pages/{id}/incidents/{incidentId}/updates |
admin | Add an update. 409 when the incident is resolved. |
DELETE /api/status-pages/{id}/incidents/{incidentId} |
admin | 204. |
GET /api/status-pages/{id}/subscribers |
admin | Email and webhook subscribers. |
POST /api/status-pages/{id}/subscribers/webhooks |
admin | Add a webhook, 201 with its signing secret. |
DELETE /api/status-pages/{id}/subscribers/{subscriberId} |
admin | 204. |
Open body: title (1 to 120), impact (none, minor, major, maintenance), status (investigating,
identified, monitoring, resolved), message (1 to 2000, plain text). Update body: status, message. The response has
id, title, impact, status, startedAt, resolvedAt (when resolved) and updates (id, status, message,
postedAt, newest first). Rules: Incident updates.
Status page appearance
Section titled “Status page appearance”| Call | Role | Description |
|---|---|---|
GET /api/status-pages/{id}/branding |
viewer | The saved appearance. |
PUT /api/status-pages/{id}/branding |
admin | Body: accentColor (#rrggbb or empty), theme (auto, light, dark), font (sans, serif, mono), showPoweredBy, customCss (up to 20 KB). Refused CSS answers 400 with the reason. |
PUT /api/status-pages/{id}/branding/logo |
admin | multipart/form-data, field file. PNG, JPEG or WebP up to 512 KB. |
PUT /api/status-pages/{id}/branding/favicon |
admin | multipart/form-data, field file. PNG or ICO up to 64 KB. |
DELETE /api/status-pages/{id}/branding/logo and /favicon |
admin | Removes the image. |
All write calls need the Enterprise plan (403 with plan_limit_exceeded otherwise). Rules:
Appearance.
Public status endpoints
Section titled “Public status endpoints”No authentication, no cookies. They are drawn from the page snapshot, cached for 60 seconds and answer 304 to an
If-None-Match with the ETag. An unknown, disabled or over-the-plan page answers 404.
| Call | Description |
|---|---|
GET /api/public/status/{slug} |
The page as JSON: overall status, components (with group, description), 90 day strips, outages, branding, maintenance and incidents. |
GET /api/public/status/{slug}/summary.json |
A small summary: status.indicator (none, minor, major, maintenance), components, open incidents, maintenance. Readable from any website. |
GET /api/public/status/{slug}/feed.atom |
Atom feed of incidents and announced maintenance. |
GET /api/public/status/{slug}/widget/badge.svg |
Badge. Query: style (pill, dot, shield), theme (auto, light, dark), label (up to 24 characters). |
GET /api/public/status/{slug}/widget/uptime.svg |
Uptime bar. Query: days (30, 60, 90), theme. |
Details and examples: Widgets, JSON and Atom feed.
Agents
Section titled “Agents”| Call | Role | Description |
|---|---|---|
GET /api/agents |
viewer | List. Items: id, clusterName, kind (kubernetes or host), keyPrefix, agentVersion, lastSeenAt, lost, revokedAt, createdAt. For a host agent clusterName is the server name, lastSeenAt the last run reported, and lost is always false. |
POST /api/agents |
admin | Body {"clusterName": "prod-eu", "kind": "kubernetes"} or {"clusterName": "web-1", "kind": "host"} (name: letters, digits, ., _, -, up to 63; kind defaults to kubernetes). Returns 201 with id, clusterName, kind, keyPrefix and the full apiKey, shown once. 403 with plan_limit_exceeded when the plan has no room for that kind (maxAgents for Kubernetes, maxHosts for host). |
DELETE /api/agents/{id} |
admin | Revoke the key, 204. |
DELETE /api/agents/{id}/permanent |
admin | Delete a revoked agent, 204. 409 if it is not revoked yet. |
Schedule preview
Section titled “Schedule preview”POST /api/schedule/preview (viewer) validates a cron expression and returns the next five run times.
curl -sS -X POST https://api.cronbeat.dev/api/schedule/preview \ -H "Authorization: Bearer cb_pat_YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"cronExpr": "0 2 * * *", "timezone": "Europe/Istanbul"}'{"valid": true, "nextRuns": ["2026-10-06T23:00:00Z", "2026-10-07T23:00:00Z", "..."]}An invalid expression answers 200 with valid: false and error. nextRuns holds five UTC instants (shortened here).
Project
Section titled “Project”| Call | Role | Description |
|---|---|---|
GET /api/project |
viewer | The project, its plan and your usage. |
PUT /api/project |
admin | Rename. Body {"name": "..."}, up to 80 characters. |
GET returns id, name, plan (free, pro, enterprise), planStatus (active, past_due, canceled),
currentPeriodEnd, hasSubscription, role (the role of the caller), limits and usage:
{ "id": "...", "name": "My project", "plan": "pro", "planStatus": "active", "role": "admin", "limits": { "maxMonitors": 50, "maxAgents": 1, "maxHosts": 10, "channelTypes": ["email", "slack"], "retentionDays": 30, "minIntervalSeconds": 60, "maxChannels": 20, "maxMembers": 5, "maxStatusPages": 1, "maxApiTokens": 5, "auditLog": false, "maxMaintenanceWindows": 20, "durationAlerts": true, "assertions": true }, "usage": {"monitors": 12, "channels": 3, "members": 2, "hosts": 1}}usage also counts the other limited things (agents, hosts for host agents, status pages, maintenance windows, API tokens). The example is shortened.
Public configuration
Section titled “Public configuration”GET /api/public/config needs no sign-in and is cached for a short time. It returns appUrl, pingBaseUrl, supportEmail,
operatorName, agentChartRef, agentLatestVersion (the newest Kubernetes agent), statusHost, hostAgentLatestVersion (the newest
cronbeat host command; empty when unknown, in which case the app shows no “update available”) and hostAgentInstallUrl (the
address of the install script, https://docs.cronbeat.dev/install.sh by default).
Not available
Section titled “Not available”There is no public API for members, billing or sign-in, no SMS or phone alert API, and no SSO or SAML.

