Authentication

Every request carries your API key in the X-Api-Key header. Find it, or generate a new one, in your dashboard under Settings → API Key. The full key is shown once when it is created; regenerating it stops the old key immediately.

curl https://uptimeclaw.com/api/v1/account \ -H "X-Api-Key: uc_0123456789abcdef0123456789abcdef" # 200 OK { "stat": "ok", "account": { "plan": "solo", "monitor_limit": 25, "monitor_count": 7 } }

Base URL

All endpoints are relative to:

https://uptimeclaw.com/api/v1

Requests and responses are JSON. Every response has a stat field: "ok" or "fail".

Errors and limits

Failed requests return a standard HTTP status code and an error object with a machine-readable type and a readable message.

// 401 Unauthorized { "stat": "fail", "error": { "type": "invalid_api_key", "message": "Invalid API key." } }
CodeMeaning
200Success
201Created
400Bad request: check the JSON body
401Missing or invalid API key
403Your plan does not allow this (for example, the monitor or status page limit)
404Not found, or not owned by your account
409Conflict, such as a status page slug already in use
422Validation failed; error.details says which field
429Rate limited
500Server error

Requests are limited per key and per minute: 10 on Free, 60 on Solo, 120 on Pro and 300 on Business. Every response carries X-RateLimit-Limit and X-RateLimit-Remaining.

List monitors

Returns every monitor on your account, newest first. status is 1 (up), 0 (down) or -1 (no result yet); response_time is in milliseconds.

GET /monitors
curl https://uptimeclaw.com/api/v1/monitors \ -H "X-Api-Key: uc_***" # 200 OK { "stat": "ok", "monitors": [ { "id": 1842, "name": "Production API", "type": "http", "url": "https://api.example.com/health", "interval": 60, "active": true, "status": 1, "response_time": 142, "created_at": "2026-10-22 21:14:00" } ] }

Create monitor

Creates a monitor; checking starts on the next cycle. The interval is raised to your plan's minimum if it is lower.

POST /monitors

Body parameters

ParameterTypeRequiredDescription
typestringNohttp (default), keyword, ping, port, udp, dns or push. Paid plans add more types.
urlstringConditionalRequired for http and keyword
hostnamestringConditionalRequired for ping, port, udp and dns
portintegerConditionalRequired for port and udp
keywordstringConditionalRequired for keyword
namestringNoDisplay name
intervalintegerNoSeconds between checks
grace_seconds, schedule, timezone, max_runtime_seconds, slugNoPush (heartbeat) monitors only. The response includes the push URL once.

New monitors are attached automatically to the alert channels you marked as default.

curl -X POST https://uptimeclaw.com/api/v1/monitors \ -H "X-Api-Key: uc_***" \ -H "Content-Type: application/json" \ -d '{ "type": "http", "url": "https://api.example.com", "name": "Production API", "interval": 60 }' # 201 Created { "stat": "ok", "monitor": { "id": 1843, "name": "Production API", "type": "http" } }

Get monitor

Returns one monitor plus its 50 most recent check results in heartbeats.

GET /monitors/:id

Update monitor

Send only the fields to change: name, interval, active, and for push monitors grace_seconds, schedule, timezone and max_runtime_seconds.

PATCH /monitors/:id

Pause and resume

Stop or restart checks without deleting the monitor or its history.

POST /monitors/:id/pause
POST /monitors/:id/resume

Delete monitor

Permanently deletes a monitor and its history. This cannot be undone.

DELETE /monitors/:id

Alert channels

Lists the alert channels on your account: email, webhook, WhatsApp, Telegram, Slack, Discord, Microsoft Teams and PagerDuty. Channels are created in the dashboard under Alerts. Secrets such as bot tokens, webhook URLs and integration keys are never returned; target shows a masked label for them.

GET /alerts/channels
# 200 OK { "stat": "ok", "channels": [ { "id": 31, "name": "#incidents", "type": "slack", "target": "Slack webhook ••••x9Qa", "is_default": true, "enabled_on_plan": true, "monitor_ids": [1842, 1843], "created_at": "2026-10-22 21:14:00" } ] }

Channels per monitor

Read or replace the set of channels a monitor alerts. PUT replaces the whole set; send an empty list to detach every channel. All channels attached to a monitor are notified together when it goes down and when it recovers.

GET /monitors/:id/alerts
PUT /monitors/:id/alerts
curl -X PUT https://uptimeclaw.com/api/v1/monitors/1842/alerts \ -H "X-Api-Key: uc_***" \ -H "Content-Type: application/json" \ -d '{ "channel_ids": [31, 32] }' # 200 OK { "stat": "ok", "monitor_id": 1842, "channels": [ { "id": 31, "name": "#incidents", "type": "slack" }, { "id": 32, "name": "On-call", "type": "pagerduty" } ] }

An id that is not one of your channels returns 422 with the offending ids in error.details.channel_ids, and nothing is changed.

List status pages

Returns your status pages with their public URL, attached monitors and, for public pages, the badge URL.

GET /status-pages

Create status page

Creates a status page. Your plan sets how many you can have: 1 on Free, 3 on Solo, 10 on Pro, unlimited on Business.

POST /status-pages
ParameterTypeRequiredDescription
titlestringYesPage heading, up to 120 characters
slugstringYesLowercase letters, digits and dashes; the page lives at /status/<slug>
descriptionstringNoShort line under the title
themestringNodark (default) or light
monitor_idsarrayNoMonitors to show, in display order
passwordstringNoMakes the page private (paid plans, at least 8 characters)
curl -X POST https://uptimeclaw.com/api/v1/status-pages \ -H "X-Api-Key: uc_***" \ -H "Content-Type: application/json" \ -d '{ "title": "Acme Status", "slug": "acme", "monitor_ids": [1842, 1843] }' # 201 Created { "stat": "ok", "status_page": { "id": 12, "slug": "acme", "title": "Acme Status", "private": false, "url": "https://uptimeclaw.com/status/acme", "badge_url": "https://uptimeclaw.com/status/acme/badge.svg", "monitor_ids": [1842, 1843] } }

Status badge

Every public status page has an SVG badge that shows its live state: operational, partial outage, major outage or maintenance. It needs no API key and always shows the current state. Private pages have no badge.

GET https://uptimeclaw.com/status/:slug/badge.svg
<!-- HTML --> <a href="https://uptimeclaw.com/status/acme"><img src="https://uptimeclaw.com/status/acme/badge.svg" alt="Acme status"></a> <!-- Markdown --> [![Acme status](https://uptimeclaw.com/status/acme/badge.svg)](https://uptimeclaw.com/status/acme)

Webhook payloads

A webhook channel receives a POST with a JSON body when a monitor goes down ("event": "down"), when it recovers ("event": "up") and when you press Test ("event": "test"). Webhook URLs must be public addresses; private and internal addresses are refused. For Slack, Discord, Microsoft Teams and PagerDuty, use their native channels instead: those send the message format each service expects.

// down payload { "event": "down", "monitor": { "name": "Production API", "url": "https://api.example.com/health", "type": "http" }, "status": 0, "message": "Virginia: HTTP 503 (212ms)", "timestamp": "2026-10-22T21:14:00+00:00", "duration": null, "quorum_summary": "2 of 3 regions confirmed DOWN (threshold 2)", "regions": [ { "source": "virginia", "name": "Virginia", "status": "DOWN", "last_seen": "2026-10-22T21:13:58Z" } ] }

The up payload has the same shape with "status": 1 and duration set to the outage length in seconds.