← Docs

API reference

Available on Pro and Team. Create a key under Account. Send it as X-Api-Key (or Authorization: Bearer). JSON in, JSON out. Base URL: https://heartbeat-monitor.morristech.ca/api/v1.

# list checks
curl -H "X-Api-Key: $KEY" https://heartbeat-monitor.morristech.ca/api/v1/checks

# create a check
curl -H "X-Api-Key: $KEY" -H "Content-Type: application/json" \
  -d '{"name":"nightly backup","period":"1d","grace":"1h","tags":"prod"}' https://heartbeat-monitor.morristech.ca/api/v1/checks

# cron schedule
curl ... -d '{"name":"report","schedule_kind":"cron","cron_expr":"30 2 * * 1-5","tz":"America/Toronto","grace":"30m"}'
Endpoint
GET /checksList checks (with ping_url, status, last_ping)
POST /checksCreate (name, period or cron_expr, grace, tags, tz)
GET /checks/:idOne check
POST /checks/:idUpdate fields
POST /checks/:id/pause, /resumePause or resume
GET /checks/:id/pingsRecent pings
DELETE /checks/:idDelete

Durations accept seconds or strings like 90s, 5m, 2h, 1d, 1w.