Skip to content

Quickstart

Live checks public HTTPS endpoints, records their uptime, and serves status pages. The hosted API base is https://live.tvr.works/v1.

You’ll need a management key to create a monitor and a status page, and a status key to read private uptime history.

API=https://live.tvr.works/v1

Create a monitor

Set LIVE_MANAGEMENT_TOKEN to your workspace’s management key. Replace the URL with a public HTTPS endpoint you operate.

printf 'Authorization: Bearer %s\n' "$LIVE_MANAGEMENT_TOKEN" |
  curl -fsS -H @- -H 'Content-Type: application/json' \
    --data '{"name":"Example API","url":"https://example.com/health","intervalMinutes":5}' \
    "$API/monitors"

Save the returned id as MONITOR_ID. Each monitor runs in one region. Create a separate monitor for each region you want to compare.

Read uptime history

Set LIVE_STATUS_TOKEN to your status key. This request returns the newest daily bucket. Counts can be zero until the first check runs.

printf 'Authorization: Bearer %s\n' "$LIVE_STATUS_TOKEN" |
  curl -fsS -H @- "$API/monitors/$MONITOR_ID?limit=1"

See History for resolution, retention, and how Live counts maintenance.

Publish a status page

Add the monitor to a status page and set published to true. The response includes the hosted page URL.

printf 'Authorization: Bearer %s\n' "$LIVE_MANAGEMENT_TOKEN" |
  curl -fsS -H @- -H 'Content-Type: application/json' \
    --data "{\"name\":\"Example status\",\"monitorIds\":[\"$MONITOR_ID\"],\"published\":true}" \
    "$API/status-pages"

Save the returned page id as PAGE_ID. Anyone can fetch the published page’s history without a key.

curl -fsS "$API/status-pages/$PAGE_ID"

The public API returns only the enabled monitors selected for that page, in display order. To take the page offline, update it with {"published":false}. Its URL remains the same.

See the API reference for every endpoint, request schema, and error response.