Outage Page

Outage Page REST API

Manage monitors and read the latest check from your own scripts. JSON over HTTPS.

Authentication

Create a key in Settings. It is shown once; we store only a hash. Send it as a bearer token:

curl -H "Authorization: Bearer opg_..." https://www.outagepage.com/api/v1/monitors

Revoke a key in Settings at any time. Keys act on the account they were created in.

Rate limits

Keep to 60 requests per minute per key. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset. Over the limit you may get 429 with Retry-After; back off and retry.

Endpoints

MethodPathWhat it does
GET/api/v1/monitorsList monitors with the latest check.
POST/api/v1/monitorsAdd a monitor. Body {"hostname": "https://api.example/health"}. Returns 201, 402 over the plan limit, or 409 if it already exists.
GET/api/v1/monitors/{id}One monitor.
GET/api/v1/monitors/{id}/checksThe last 50 checks.
POST/api/v1/monitors/{id}/checkRun a check now and return the result.
DELETE/api/v1/monitors/{id}Remove a monitor. Returns 204.
POST/api/heartbeat/{token}Inbound heartbeat for a heartbeat monitor. Idempotent. Rate limited.

Monitor object

{
  "id": "...", "hostname": "api.example", "port": 443, "paused": false,
  "status": "ok" | "problem" | "pending", "error_code": null,
  "days_remaining": 42, "last_checked_at": "...",
  "created_at": "..."
}

days_remaining holds the latest latency in milliseconds for Outage Page monitors.

Errors

Errors return {"error": "code", "message": "..."} with codes unauthorized, invalid_json, invalid_hostname, plan_limit, duplicate, not_found and rate_limited.

Signed webhooks

Add a webhook URL in Settings to receive alerts as JSON. Each POST has X-OutagePage-Event and X-OutagePage-Signature: t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of t + "." + raw body with your signing secret. Reject requests older than five minutes.