Skip to content
UptimePulse

REST API

Automate monitors, read check results and analytics, and manage status pages and reports. API keys are part of the Pro and Agency plans (Dashboard → API keys). Machine-readable description: /api/v1/openapi.json (OpenAPI 3.1).

Basics

  • Authentication: Authorization: Bearer up_live_…. Browser sessions also work; writes with a session cookie must come from this site.
  • Errors share one shape: { "error": { "code": "plan_limit", "message": "…", "field": "intervalSeconds" } }. Plan limits answer 402 with the plan that lifts them.
  • Lists are paged with limit and the opaque nextCursor.
  • 600 requests per minute per key. Times are UTC ISO 8601.
curl -s https://ultimepulse.com/api/v1/monitors \
  -H "Authorization: Bearer $UPTIMEPULSE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Shop","type":"HTTPS","url":"https://shop.example.com","intervalSeconds":60}'

Endpoints

POST/api/v1/auth/register

Create a Free account and sign in (session cookie).

  • email: string
  • password: string, 10+ characters
  • name: string, optional
  • acceptTerms: true (required)

Responses: 201 user + workspace; 422 invalid; 429; 451 region

POST/api/v1/auth/login

Sign in (session cookie).

  • email: string
  • password: string

Responses: 200 user; 401 invalid_credentials; 429

POST/api/v1/auth/logout

End the current session.

Responses: 200

GET/api/v1/accountneeds monitors:read

The caller, workspace, plan limits and usage.

Responses: 200

GET/api/v1/monitorsneeds monitors:read

List monitors (oldest first).

  • limit: 1-100, default 50
  • cursor: from nextCursor

Responses: 200 { data, nextCursor }

POST/api/v1/monitorsneeds monitors:write

Create a monitor. Plan limits apply (402 plan_limit with an upgrade offer).

  • name: string
  • type: HTTP | HTTPS | API | KEYWORD | SSL | DNS | TCP | HEARTBEAT
  • url: for HTTP/HTTPS/API/KEYWORD
  • host: for SSL/DNS/TCP
  • port: number (TCP, SSL)
  • intervalSeconds: number, at least the plan minimum
  • expectedStatus: e.g. 200-299
  • method: GET | HEAD | POST (API)
  • headers: object (API), stored encrypted, never returned
  • keyword: string
  • keywordMode: present | absent
  • dnsRecordType: A | AAAA | CNAME | MX | TXT | NS
  • dnsExpected: string
  • timeoutSeconds: 1-60
  • degradedAboveMs: number
  • failureThreshold: 1-5
  • tags: string[]
  • group: string

Responses: 201; 402; 422

GET/api/v1/monitors/{id}needs monitors:read

One monitor.

Responses: 200; 404

PATCH/api/v1/monitors/{id}needs monitors:write

Change fields (others kept; headers kept unless sent).

  • …: any field of POST /monitors

Responses: 200; 402; 404; 422

DELETE/api/v1/monitors/{id}needs monitors:write

Delete a monitor and its history.

Responses: 204; 404

POST/api/v1/monitors/{id}/pauseneeds monitors:write

Pause checks and alerts.

Responses: 200

POST/api/v1/monitors/{id}/resumeneeds monitors:write

Resume (402 if the active limit is reached).

Responses: 200; 402

POST/api/v1/monitors/{id}/checkneeds monitors:write

Queue an immediate check (one per 30 s per monitor).

Responses: 202; 409; 429

GET/api/v1/monitors/{id}/checksneeds monitors:read

Check results, newest first (individual results are kept 30 days; older history is in /analytics, from daily summaries).

  • limit: 1-500, default 50
  • cursor: from nextCursor

Responses: 200 { data, nextCursor }

GET/api/v1/monitors/{id}/analyticsneeds monitors:read

Uptime, coverage, downtime, MTTR, latency percentiles and series.

  • range: 24h | 7d | 30d | 90d | custom
  • from: YYYY-MM-DD (custom)
  • to: YYYY-MM-DD (custom, inclusive)

Responses: 200

GET/api/v1/incidentsneeds monitors:read

Incidents, newest first.

  • state: open | resolved
  • limit: 1-100
  • cursor: from nextCursor

Responses: 200 { data, nextCursor }

GET/api/v1/status-pagesneeds monitors:read

Status pages and their published monitors.

Responses: 200

POST/api/v1/status-pagesneeds status_pages:write

Create a status page.

  • title: string
  • slug: string
  • description: string
  • monitors: [{ id, publicName }]
  • published: boolean

Responses: 201; 402; 422

GET/api/v1/reportsneeds monitors:read

PDF reports with download links (session or signed link required to download).

Responses: 200

POST/api/v1/reports/generateneeds reports:write

Queue a PDF report (plans with reports).

  • period: last-month (default)
  • periodStart: YYYY-MM-DD
  • periodEnd: YYYY-MM-DD, exclusive
  • clientName: string
  • group: string

Responses: 202; 422

POST/api/v1/billing/checkoutneeds billing:manage

Start a Stripe Checkout for a paid plan (owner session only; price looked up server side).

  • plan: starter | pro | agency
  • interval: month | year

Responses: 200 { url }; 422

POST/api/v1/webhooks/stripe

Stripe webhooks (signature verified on the raw body).

Responses: 200; 400; 500

GET/api/v1/health

Liveness.

Responses: 200

GET/api/v1/readiness

Database and Redis reachable.

Responses: 200; 503