Skip to content

Connect via REST API

List your monitors:

Terminal window
curl https://api.uptimemonitoring.com/api/v1/monitors \
-H "Authorization: Bearer umk_live_..."

Replace umk_live_... with your actual API key.

Terminal window
curl -X POST https://api.uptimemonitoring.com/api/v1/monitors \
-H "Authorization: Bearer umk_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "my-api",
"url": "https://example.com/healthz",
"type": "http",
"expected_status": "200"
}'

See Monitors for the full field reference and response shape.

A successful list call returns 200 OK with a JSON array. A successful create call returns 200 OK with a {monitor, state} envelope. If you see 401, check the common errors below.

SymptomCauseFix
401 UnauthorizedKey prefix wrong or key revokedConfirm the key starts with umk_live_ — see Authentication
429 Too Many RequestsRate limit exceededSee Rate Limits
400 on createInvalid request bodySee Errors — the envelope is {"error":"<message>"}, not RFC 7807

Connect UptimeMonitoring to your AI agent instead of calling the REST API directly: