Resources

API documentation

The HTTP shape of a workspace: monitors, checks, and incidents. Examples use a placeholder token.

Authentication

Send a workspace token on every request. Create the token in settings. Treat it like a password and store it in your own secret manager.

curl https://api.uptimeheart.example/v1/monitors \
  -H "Authorization: Bearer $UPTIMEHEART_TOKEN"

List monitors

Returns the monitors in the organization the token belongs to. Viewers can read. Changes require a role that can edit monitors.

GET /v1/monitors

{
  "monitors": [
    { "id": "mon_01", "name": "Homepage", "type": "website", "state": "up" }
  ]
}

Create a website monitor

Name, type, URL, expected status, and interval in seconds. The interval cannot be faster than the plan allows.

POST /v1/monitors
Content-Type: application/json

{
  "name": "Homepage",
  "type": "website",
  "url": "https://acme.dev",
  "expectedStatus": 200,
  "intervalSeconds": 30
}

List open incidents

One incident is open per failing monitor. The payload includes when it opened and the last error summary.

GET /v1/incidents?state=open

{
  "incidents": [
    { "id": "inc_18", "monitorId": "mon_02", "openedAt": "2026-11-02T14:02:00Z" }
  ]
}

Recent checks

Check results for one monitor, newest first, inside the history your plan retains.

GET /v1/monitors/mon_01/checks?limit=3

{
  "checks": [
    { "at": "2026-11-02T14:20:00Z", "ok": true, "status": 200, "durationMs": 142 }
  ]
}