Healthchecks
v0.3.0Inspect, create and adjust Healthchecks cron and uptime checks, and read why one failed
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_checks List checks
Lists the checks in the project the API key belongs to, newest state first. API keys are per project, so this never spans projects. Descriptions are omitted here — call get_check for one.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Default 50. |
slug | string | Only checks with this slug. Slugs are not unique, so this can match several. |
status | string | Filtered client-side; the API has no status filter. |
tag | array | Only checks carrying all of these tags. |
get_check Get check
Fetches one check with all its fields, including the description and the keyword filters. Accepts a UUID, or the unique_key that a read-only API key returns in place of one.
| Parameter | Type | Description |
|---|---|---|
check * | string | Check UUID, or the unique_key that a read-only API key returns instead. |
list_pings List pings
Lists recent pings of a check, newest first. The instance caps this at 100 pings on a free plan and 1000 on a paid one, and there is no pagination, so older pings cannot be reached at all. Note: Healthchecks requires a read-write API key for this endpoint even though it only reads. A read-only key is refused with HTTP 401 "wrong api key", which is not what it sounds like. Call get_api_key_info to check which kind is configured. With a read-only key this tool cannot even be *called* correctly: it addresses a check by uuid, and a read-only key never sees one — list_checks answers with a 40-ch…
| Parameter | Type | Description |
|---|---|---|
check * | string | The check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one. |
limit | integer | Default 50. |
type | string | Filtered client-side. |
get_ping_body Get ping body
Returns the body that was POSTed with one ping — usually the output of the job that reported in, which is the fastest way to see why a check failed. Truncated at 64 KB. Note: Healthchecks requires a read-write API key for this endpoint even though it only reads. A read-only key is refused with HTTP 401 "wrong api key", which is not what it sounds like. Call get_api_key_info to check which kind is configured. With a read-only key this tool cannot even be *called* correctly: it addresses a check by uuid, and a read-only key never sees one — list_checks answers with a 40-character unique_key…
| Parameter | Type | Description |
|---|---|---|
check * | string | The check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one. |
n * | integer | Ping number `n`, as reported by list_pings. |
list_flips List status flips
Lists the up/down transitions of a check — the history behind its current status. The instance keeps the current month and the two before it. Accepts a UUID or a unique_key.
| Parameter | Type | Description |
|---|---|---|
check * | string | Check UUID, or the unique_key that a read-only API key returns instead. |
end | integer | Only flips older than this. |
limit | integer | Default 50. |
seconds | integer | Only flips from the last N seconds. |
start | integer | Only flips newer than this. |
list_integrations List integrations
Lists the notification integrations of the project, with the UUIDs that create_check and update_check accept in their channels argument. Integrations themselves can only be created in the web UI. Note: Healthchecks requires a read-write API key for this endpoint even though it only reads. A read-only key is refused with HTTP 401 "wrong api key", which is not what it sounds like. Call get_api_key_info to check which kind is configured. With a read-only key this tool cannot even be *called* correctly: it addresses a check by uuid, and a read-only key never sees one — list_checks answers with…
list_badges List badges
Lists the status badge URLs of the project, one entry per tag plus "*" for the project as a whole. The plain variants treat a check in its grace period as up; the ones suffixed 3 report up, late and down separately.
get_status Get instance status
Checks that the configured Healthchecks instance is reachable and its database is answering. Needs no API key, so it is the tool to try first when something is not working.
get_api_key_info Get API key info
Reports which instance is configured, whether the API key works, and whether it is a read-only or a read-write key — which decides whether list_pings, get_ping_body and list_integrations can be used at all, and whether checks are identified by uuid or by unique_key.
create_check Create check
Creates a check. Pass either timeout (a simple period) or schedule (a cron or systemd OnCalendar expression), never both. Unless channels says otherwise, the new check notifies every integration in the project ("*"), because a check with no integrations never alerts anyone. Setting unique turns this into an upsert that may UPDATE an existing check.
| Parameter | Type | Description |
|---|---|---|
channels | Integrations to notify: "*" for all of them (the default here), or a list of UUIDs or exact names from list_integrations. | |
desc | string | Free-text description shown in the Healthchecks UI. |
failure_kw | array | Keywords that mark a ping as failure. |
filter_body | boolean | Apply the keywords to email bodies. |
filter_default_fail | boolean | Treat a ping matching no keyword as a failure instead of a success. |
filter_http_body | boolean | Apply the keywords to HTTP ping bodies. |
filter_subject | boolean | Apply the keywords to email subjects. |
grace | integer | Grace period before a late check is reported down, in seconds (60 … 31536000). |
manual_resume | boolean | When true, a paused check ignores pings until resume_check is called. |
methods | string | Allowed ping methods: "" accepts HEAD, GET and POST, "POST" accepts only POST. |
name | string | Display name of the check. |
schedule | string | A cron expression or a systemd OnCalendar expression; the instance detects which. Takes precedence over timeout, so the two cannot be combined. |
slug | string | Explicit slug. Requires an instance with API v3. |
start_kw | array | Keywords that mark a ping as "start". |
success_kw | array | Keywords that mark a ping as success. |
tags | array | Tags. Stored space-delimited upstream, so no tag may contain a space. |
timeout | integer | Expected period between pings, in seconds (60 … 31536000). Mutually exclusive with schedule. |
tz | string | Time zone for schedule, e.g. "Europe/Berlin". Only meaningful with schedule. |
unique | array | Turns this call into an upsert: if an existing check matches on all of these fields, it is UPDATED instead of a new one being created. |
update_check Update check
Updates a check. Fields that are not given stay unchanged. Two exceptions: channels REPLACES the integration list rather than adding to it, and setting schedule on a check that used timeout switches it over. Needs a UUID, which read-only API keys never see.
| Parameter | Type | Description |
|---|---|---|
check * | string | The check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one. |
channels | Integrations to notify: "*" for all of them, or a list of integration UUIDs or exact names (see list_integrations). Replaces the current set, it does not merge. An empty list is refused — it would l… | |
desc | string | Free-text description shown in the Healthchecks UI. |
failure_kw | array | Keywords that mark a ping as failure. |
filter_body | boolean | Apply the keywords to email bodies. |
filter_default_fail | boolean | Treat a ping matching no keyword as a failure instead of a success. |
filter_http_body | boolean | Apply the keywords to HTTP ping bodies. |
filter_subject | boolean | Apply the keywords to email subjects. |
grace | integer | Grace period before a late check is reported down, in seconds (60 … 31536000). |
manual_resume | boolean | When true, a paused check ignores pings until resume_check is called. |
methods | string | Allowed ping methods: "" accepts HEAD, GET and POST, "POST" accepts only POST. |
name | string | Display name of the check. |
schedule | string | A cron expression or a systemd OnCalendar expression; the instance detects which. Takes precedence over timeout, so the two cannot be combined. |
slug | string | Explicit slug. Requires an instance with API v3. |
start_kw | array | Keywords that mark a ping as "start". |
success_kw | array | Keywords that mark a ping as success. |
tags | array | Tags. Stored space-delimited upstream, so no tag may contain a space. |
timeout | integer | Expected period between pings, in seconds (60 … 31536000). Mutually exclusive with schedule. |
tz | string | Time zone for schedule, e.g. "Europe/Berlin". Only meaningful with schedule. |
pause_check Pause check
Pauses a check: it stops expecting pings and stops alerting. resume_check puts it back, and nothing is lost in between — so this is not asked about. It does mean a job that stops running goes unnoticed while the check is paused.
| Parameter | Type | Description |
|---|---|---|
check * | string | The check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one. |
resume_check Resume check
Resumes a paused check and puts it back into the "new" state, waiting for its next ping. Fails with HTTP 409 if the check is not paused.
| Parameter | Type | Description |
|---|---|---|
check * | string | The check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one. |
delete_check Delete check
Deletes a check permanently. Its UUID is not recoverable, so every deployed script pinging that URL breaks. Two-step: the first call returns a confirmation token, the second call with that token deletes.
| Parameter | Type | Description |
|---|---|---|
check * | string | The check UUID. Read-only API keys never see it — use list_checks with a read-write key to obtain one. |
confirm_token | string | Token from a previous call of this tool. |