Management API
The management API reads and changes a project's checks and integrations. Requests and responses are JSON. The base URL is:
https://staging.crony.sh/api/v1The same API also answers under /api/v3, with the paths and field names of the Healthchecks.io API. Moving from Healthchecks.io lists where the two differ. Every path works with or without its trailing slash. A request body over 100,000 bytes answers 413. An AI agent can do the same work through the MCP server, with the same keys.
Authentication
API keys belong to a project. Owners and managers create them in the project's settings, and each key is shown once. Send the key in the X-Api-Key header, or as Authorization: Bearer.
curl -H "X-Api-Key: $CRONY_API_KEY" https://staging.crony.sh/api/v1/checks/A read-write key starts with crony_rw_ and can call every endpoint below. A read-only key starts with crony_ro_. It can list checks, read one check, list a check's flips, list badges and read the metrics, with GET or HEAD. It cannot change anything, list pings or their bodies, or list integrations. Its check responses leave out the UUID, the ping URL, the other URLs and the integrations, and carry a unique_key instead. A read-only key names a check by that unique key in the path, as in /checks/9b1f0c3e7a5d2468ace013579bdf2468ace01357. A read-write key can also read one check or list its flips by unique key.
Endpoints
| Method and path | Key | What it does |
|---|---|---|
GET /checks/ | Either | Lists the project's checks. |
POST /checks/ | Read-write | Creates a check. |
GET /checks/<uuid> | Either | Reads one check. |
POST /checks/<uuid> | Read-write | Changes a check. Send only the fields to change. |
DELETE /checks/<uuid> | Read-write | Deletes a check with its log, and returns it as it was. |
POST /checks/<uuid>/pause | Read-write | Pauses a check. |
POST /checks/<uuid>/resume | Read-write | Resumes a paused check, which waits as new for its next ping. |
GET /checks/<uuid>/pings/ | Read-write | Lists the pings still in the check's log, newest first. |
GET /checks/<uuid>/pings/<n>/body | Read-write | Returns the stored body of ping number n as plain text. |
GET /checks/<uuid>/flips/ | Either | Lists the check's changes of state, newest first. |
GET /channels/ | Read-write | Lists the project's integrations. |
POST /channels/ | Read-write | Adds an integration. |
POST /channels/<id> | Read-write | Changes an integration. |
DELETE /channels/<id> | Read-write | Removes an integration, and returns it as it was. |
GET /badges/ | Either | Lists the project's status badge URLs. |
GET /metrics/ | Either | Returns the project's checks in the Prometheus text format. |
GET /status/ | None | Answers {"status": "ok"} when the API and its database work, and 503 when they do not. |
List checks
curl -H "X-Api-Key: $CRONY_API_KEY" "https://staging.crony.sh/api/v1/checks/?tag=prod&tag=db"The answer is {"checks": [...]}, oldest check first. Each tag parameter keeps only checks with that tag, and slug keeps only the check with that slug.
Create a check
curl -H "X-Api-Key: $CRONY_API_KEY" -X POST https://staging.crony.sh/api/v1/checks/ \
--data '{"name": "Nightly backup", "slug": "nightly-backup", "tags": "prod db",
"schedule": "30 2 * * *", "tz": "Europe/Berlin", "grace": 900,
"channels": "*"}'| Field | Meaning |
|---|---|
name | Up to 100 characters. |
slug | Lowercase letters, digits, hyphens and underscores, up to 100 characters, unique in the project. An empty slug means none. |
tags | Tags separated by spaces, up to 500 characters. |
desc | A description, up to 10,000 characters. |
timeout | An interval schedule's period, in seconds. |
schedule | A five-field cron expression. It wins over timeout. |
tz | The cron schedule's IANA time zone. The default is UTC. |
grace | Grace time, in seconds. |
max_runtime | Maximum run time in seconds, or null to use the grace time. |
manual_resume | true: a paused check logs pings as ignored until it is resumed by hand. |
methods | "" accepts GET, HEAD and POST; "POST" only POST. |
channels | "*" for every integration, or integration ids separated by commas. Leave it out when creating, and the check uses no integration. Leave it out when changing, and the check keeps its integrations. |
unique | A list of fields drawn from name, slug, tags, timeout and grace. See below. |
start_kw, success_kw, failure_kw | Keywords for keyword filtering, separated by commas, up to 200 characters each. |
filter_http_body, filter_subject, filter_body, filter_default_fail | true or false: what to filter, and whether a text matching nothing counts as a failure. |
A new check without a schedule expects a ping every day, with one hour of grace time. Periods, grace times and maximum run times are whole seconds from 60 to 31,536,000 (365 days).
A new check answers 201 with the check. With unique, Crony first looks for a check whose listed fields equal the ones sent. If one is found, that check is changed with the other fields instead, and the answer is 200. This lets a deploy script create its checks safely on every run. Every field listed in unique must be in the request, and timeout cannot be listed when the request also sends a schedule. Otherwise the answer is 400.
A check
{
"name": "Nightly backup",
"slug": "nightly-backup",
"tags": "prod db",
"desc": "",
"grace": 900,
"n_pings": 42,
"status": "up",
"started": false,
"last_ping": "2026-11-24T01:31:07+00:00",
"next_ping": "2026-11-25T01:30:00+00:00",
"last_duration": 64,
"max_runtime": null,
"manual_resume": false,
"methods": "",
"start_kw": "",
"success_kw": "",
"failure_kw": "",
"filter_subject": false,
"filter_body": false,
"filter_http_body": false,
"filter_default_fail": false,
"schedule": "30 2 * * *",
"tz": "Europe/Berlin",
"uuid": "f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31",
"ping_url": "https://staging.crony.sh/ping/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31",
"update_url": "https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31",
"pause_url": "https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31/pause",
"resume_url": "https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31/resume",
"channels": "7c0e9a52-3f1b-4d8e-b6a4-91d2e5f0c3a8"
}status is one of new, up, late, down and paused. started is true while a run is in progress. last_duration is the last run's length in seconds. next_ping is null unless the check is up. An interval check has timeout in place of schedule and tz. Times are in UTC.
Change, pause and delete
curl -H "X-Api-Key: $CRONY_API_KEY" -X POST https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31 --data '{"grace": 1800}'
curl -H "X-Api-Key: $CRONY_API_KEY" -X POST https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31/pause
curl -H "X-Api-Key: $CRONY_API_KEY" -X POST https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31/resume
curl -H "X-Api-Key: $CRONY_API_KEY" -X DELETE https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31Pausing cancels alerts that have not gone out yet. Pausing a check that is down ends its outage, without a recovery message. Resuming a check that is not paused answers 409.
Pings and flips
curl -H "X-Api-Key: $CRONY_API_KEY" https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31/pings/
curl -H "X-Api-Key: $CRONY_API_KEY" https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31/pings/42/body
curl -H "X-Api-Key: $CRONY_API_KEY" "https://staging.crony.sh/api/v1/checks/f3a1c6e2-8d4b-4c7a-9e15-2b6d0c9a7f31/flips/?seconds=86400"The pings answer is {"pings": [...]}. Each ping has its type (success, start, fail, log or ign), date, number n, source (http or email), method, remote_addr, ua, rid, duration and exit_status. A ping with a stored body also has a body_url. A ping without a body, or one that has left the log, answers 404.
The flips answer is a list of {"timestamp": "...", "up": 1, "status": "up"} entries, newest first. status is the state the check changed to: down for an outage, up for a recovery, or paused when pausing ended an outage. up is 1 for a recovery and 0 otherwise. Narrow the list with seconds (the last so many seconds), or with start and end as Unix times in seconds, both included.
Integrations
Unlike the Healthchecks.io API, Crony's API can add, change and remove integrations. The list answer is {"channels": [...]}. Each integration is returned as:
{
"id": "7c0e9a52-3f1b-4d8e-b6a4-91d2e5f0c3a8",
"name": "Ops on call",
"kind": "pagerduty",
"delay": 1800,
"repeat": 3600,
"notify_up": true,
"confirmed": true
}The API never returns an integration's config, because it can hold secrets such as webhook URLs and tokens. An email integration to the project owner's address works at once. For any other address, Crony emails the recipient a confirmation request, and confirmed stays false until they open its link. Such an integration sends nothing until then. The integration's page in the dashboard can send the request again. When a limit on such emails stops the request, the integration is still created or changed, and the answer adds a notice field saying that no email was sent and why. A key's requests count against the project owner's account.
curl -H "X-Api-Key: $CRONY_API_KEY" -X POST https://staging.crony.sh/api/v1/channels/ \
--data '{"kind": "slack", "name": "Ops channel", "delay": 0,
"config": {"url": "https://hooks.slack.com/services/..."}}'
curl -H "X-Api-Key: $CRONY_API_KEY" -X POST https://staging.crony.sh/api/v1/channels/7c0e9a52-3f1b-4d8e-b6a4-91d2e5f0c3a8 --data '{"delay": 600, "repeat": 3600}'
curl -H "X-Api-Key: $CRONY_API_KEY" -X DELETE https://staging.crony.sh/api/v1/channels/7c0e9a52-3f1b-4d8e-b6a4-91d2e5f0c3a8| Field | Meaning |
|---|---|
kind | Required when adding. It cannot change afterwards. |
name | Up to 100 characters. |
config | The kind's settings, from the table below. When changing, a config replaces the whole old one. |
delay | Seconds the check must stay down before this integration is told, from 0 to 86,400. The default is 0. |
repeat | Seconds between reminders while the check stays down: 0 for none, or from 300 to 604,800. The default is 0. |
notify_up | Whether to send recovery messages. The default is true. |
Adding answers 201. An integration added through the API is not used by any check yet. Set it on checks with their channels field. A project can have at most 50 integrations.
| kind | Integration | config fields |
|---|---|---|
email | to (required) | |
webhook | Webhook | url_down (required), url_up, method (POST, GET, PUT), headers, body_down, body_up |
slack | Slack | url (required) |
discord | Discord | url (required) |
mattermost | Mattermost | url (required) |
rocketchat | Rocket.Chat | url (required) |
googlechat | Google Chat | url (required) |
teams | Microsoft Teams | url (required) |
zulip | Zulip | site (required), bot_email (required), api_key (required), type (channel, direct), to (required), topic |
matrix | Matrix | homeserver (required), access_token (required), room_id (required) |
telegram | Telegram | bot_token (required), chat_id (required) |
ntfy | ntfy | url, topic (required), priority_down, priority_up, token |
pushover | Pushover | app_token (required), user_key (required), priority_down, priority_up |
gotify | Gotify | url (required), token (required) |
pushbullet | Pushbullet | access_token (required) |
pagerduty | PagerDuty | routing_key (required) |
opsgenie | Opsgenie | api_key (required), region (us, eu) |
splunk | Splunk On-Call | url (required) |
pagertree | PagerTree | url (required) |
spike | Spike.sh | url (required) |
Prometheus
curl -H "X-Api-Key: $CRONY_API_KEY" https://staging.crony.sh/api/v1/metrics/The metrics are crony_check_up (1, or 0 when down), crony_check_status (1, with the status in a status label), crony_check_last_ping_timestamp_seconds (0 when never), crony_check_last_duration_seconds (for checks with a finished run), crony_checks_total and crony_checks_down_total. Each check is labelled with its name, tags and unique_key.
Errors
An error answers with a status code and {"error": "..."}, a message saying what is wrong.
| Status | When |
|---|---|
| 400 | The body is not a JSON object, or a field is not valid. |
| 401 | The API key is missing or not valid. |
| 403 | A read-only key called an endpoint that needs a read-write key, a new check would take the account past its plan's checks, or the project already has 50 integrations. |
| 404 | No such check, integration, ping body or endpoint in this project. |
| 409 | Another check in the project already uses the slug, or the check to resume is not paused. |
| 413 | The request body is over 100,000 bytes. |
| 429 | The email integration had a confirmation request less than 24 hours ago, so its address cannot change yet. |
| 500 | Something went wrong on Crony's side. |