Build with the
UptimeClaw API.
Endpoints for monitors, alert channels and status pages, plus badges and webhook payloads. JSON in, JSON out.
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.
Base URL
All endpoints are relative to:
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.
| Code | Meaning |
|---|---|
200 | Success |
201 | Created |
400 | Bad request: check the JSON body |
401 | Missing or invalid API key |
403 | Your plan does not allow this (for example, the monitor or status page limit) |
404 | Not found, or not owned by your account |
409 | Conflict, such as a status page slug already in use |
422 | Validation failed; error.details says which field |
429 | Rate limited |
500 | Server 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.
Create monitor
Creates a monitor; checking starts on the next cycle. The interval is raised to your plan's minimum if it is lower.
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | http (default), keyword, ping, port, udp, dns or push. Paid plans add more types. |
url | string | Conditional | Required for http and keyword |
hostname | string | Conditional | Required for ping, port, udp and dns |
port | integer | Conditional | Required for port and udp |
keyword | string | Conditional | Required for keyword |
name | string | No | Display name |
interval | integer | No | Seconds between checks |
grace_seconds, schedule, timezone, max_runtime_seconds, slug | No | Push (heartbeat) monitors only. The response includes the push URL once. |
New monitors are attached automatically to the alert channels you marked as default.
Get monitor
Returns one monitor plus its 50 most recent check results in heartbeats.
Update monitor
Send only the fields to change: name, interval, active, and for push monitors grace_seconds, schedule, timezone and max_runtime_seconds.
Pause and resume
Stop or restart checks without deleting the monitor or its history.
Delete monitor
Permanently deletes a monitor and its history. This cannot be undone.
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.
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.
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.
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Page heading, up to 120 characters |
slug | string | Yes | Lowercase letters, digits and dashes; the page lives at /status/<slug> |
description | string | No | Short line under the title |
theme | string | No | dark (default) or light |
monitor_ids | array | No | Monitors to show, in display order |
password | string | No | Makes the page private (paid plans, at least 8 characters) |
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.
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.
The up payload has the same shape with "status": 1 and duration set to the outage length in seconds.