Outage Clock REST API: poll vendor status with an API key
Looking for an API outage? An API outage is a live incident on a vendor API, webhook, or gateway. Open API outages today for that list. The REST API below is for scripts that poll vendor status with a key.
API outage
For live API incidents and recent outage history, open API outages today. The REST API documentation below is for scripts that poll vendor status.
Use the REST API when a script, bot or internal dashboard should follow vendors and read the latest poll without opening the app UI. Calls are JSON over HTTPS. The account API is on the Business plan. The public catalog endpoint does not need a key.
Who this API is for
Ops and platform teams that already store vendor lists in code. Support tools that should open a ticket when a followed vendor goes red. Internal status boards that want official feed state next to your own metrics. If you only need human alerts, Free email or Starter Slack is enough and you can skip the API.
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 ocl_..." https://www.outageclock.com/api/v1/monitors
Revoke a key in Settings at any time. Keys act only on the account they were created in. Do not put a key in a public repo or a front end bundle.
Rate limits
Keep to 60 requests per minute per key on /api/v1. Those three headers, X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset, are set only after the key is recognized. A missing or unknown key returns 401 and does not set them. Over the limit the call returns 429 with Retry-After and {"error": "rate_limited", "message": "..."}. Back off and retry. Polling every few minutes is enough for vendor status. Do not spin in a tight loop.
Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /api/v1/monitors | List followed vendors with the latest status. |
| POST | /api/v1/monitors | Follow a vendor. Body {"hostname": "github.com"} or a catalog name. Returns 201, 402 over the plan limit, or 409 if it already exists. |
| GET | /api/v1/monitors/{id} | One followed vendor. |
| GET | /api/v1/monitors/{id}/checks | The last 50 polls. |
| POST | /api/v1/monitors/{id}/check | Poll now and return the result. |
| DELETE | /api/v1/monitors/{id} | Stop following. Returns 204. |
| GET | /api/catalog | Public catalog. Body {"data": [{"id", "name", "domain", "format"}]}. No key. 60 requests a minute per client address, then 429 {"error": "rate_limited"} with no rate-limit headers. |
Vendor object
{
"id": "...", "hostname": "github", "port": 443, "paused": false,
"status": "ok" | "problem" | "pending",
"error_code": null | "incident" | "unreachable",
"overall_status": "operational",
"open_incidents": 0,
"subject": null,
"reachability_ok": true,
"components": [],
"last_checked_at": "...",
"created_at": "..."
}
Before the first poll, overall_status, open_incidents and reachability_ok are null and status is pending. After a poll, overall_status is operational, degraded, partial_outage, major_outage or maintenance. open_incidents is the count of open feed incidents. error_code is null when status is ok. When status is problem it is incident or unreachable. A stored tls_error is returned as incident. reachability_ok is false when the status URL did not answer. When the feed is marked unavailable, that field is stored true so the row is not labeled unreachable. components is a list of component name strings, not status objects. On the list, paused follows the plan pause set. GET one monitor and POST check return paused: false.
Typical flows
Bootstrap from the catalog. GET /api/catalog, pick the vendor ids you care about, then POST each one to /api/v1/monitors. On Free you can follow five vendors in the UI. The API follow path is on Business.
Sync a board. GET /api/v1/monitors on a schedule. Map overall_status and open_incidents into your own view. Prefer the poll timestamps over inventing a status.
Force a fresh read. POST /api/v1/monitors/{id}/check when a human asks whether the feed is stale. That route reads no JSON body and no query string. Respect the rate limit.
Retire a vendor. DELETE /api/v1/monitors/{id} when you stop using that product. Orphans create noise in digests and webhooks.
Errors
error is one of unauthorized, invalid_json, invalid_hostname, plan_limit, plan_required, duplicate, not_found or rate_limited. message is present for invalid_hostname, plan_limit, plan_required, duplicate and rate_limited on /api/v1. A missing bearer token, and an unknown or revoked key, are HTTP 401 with unauthorized and a message. invalid_json and not_found are only {"error": "..."}. plan_required is HTTP 402 when the plan is not Business. plan_limit is also HTTP 402. Treat plan_limit as a hard stop until you remove a vendor or change plan. Treat duplicate as success for idempotent bootstrap scripts.
Signed webhooks
Add a webhook URL in Settings to receive alerts as JSON. Webhooks start on Starter. Custom payload templates start on Business. Each POST has X-OutageClock-Event and X-OutageClock-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. Events include vendor.incident, vendor.update, vendor.resolved, vendor.maintenance, vendor.reachability and vendor.digest.
For a full playbook on routing those events into tickets and on-call, see vendor incident webhooks. For a human readable list of open incidents, see open incidents.
How to read one poll
overall_status is the vendor summary word stored from the feed. open_incidents is the number of open feed incidents stored on the monitor. error_code is incident or unreachable when status is problem, and null when the row is ok. Keep overall_status and reachability_ok apart. A vendor can report operational while reachability_ok is false, except when the feed is marked unavailable: that case stores reachability_ok true.
components lists names only. It does not include each component's status. Match the names to the product flows you call. A name you do not use does not explain a checkout failure. A calm overall_status can still sit next to a name you do use, so read the name list when a customer report and the summary disagree.
Poll slowly, refresh on purpose
GET the monitor list every few minutes. That is enough for a board. The list body also includes plan, limit, planLimit and bonusLimit. The limit is 60 requests a minute per key, and a tight loop spends it. On HTTP 429 from /api/v1, wait for Retry-After and retry that single call. POST /api/v1/monitors/{id}/check takes no body and no query. It polls that vendor and returns the vendor object. Do not POST a forced check for every vendor on every pass. The scheduled poll already updates feeds that are due.
GET checks returns up to the last 50 rows. Each row has checked_at, ok, error_code, overall_status, open_incidents and subject. It does not include components or reachability_ok. Use it after a receiver was offline and you want the readings you did not render. It is history of polls, not a replay of webhook bodies.
Bootstrap that can be run twice
Start with GET /api/catalog. That route does not use the API key. It allows 60 requests a minute for the client address, then HTTP 429 with {"error": "rate_limited"} and no Retry-After header. Pick ids from data. POST each follow with {"hostname": "<catalog id, vendor name, or domain>"}. The stored hostname is the catalog id, and the port is 443. HTTP 201 means a new follow. HTTP 409 with duplicate means that id is already on the account. Treat 409 as done and continue. HTTP 402 with plan_limit means the plan cannot take another vendor. HTTP 402 with plan_required means the key's plan is not Business. HTTP 401 means the key is missing or unknown. Fix that before you repeat the list. HTTP 400 with invalid_hostname means the name is not in the catalog. Delete a follow when you stop shipping that product so later digests stay about vendors you still use.
Keep the key in the secret store your jobs already use. The full key is shown once in Settings. Logs should carry the prefix at most. The public catalog needs no key. Do not hide a Business key in a browser bundle to call the catalog.
Plans and limits
Free is $0 a month for 5 vendors with email alerts and no card. Starter is $19 a month for 30 vendors with Slack, Teams and a webhook. Pro is $49 a month for 150 vendors. Business is $99 a month for every vendor in the catalog plus this API. Yearly billing on paid plans is two months free. Limits and prices are on the pricing page.
FAQ
Is the catalog public without a key?
Yes. GET /api/catalog returns id, name, domain and feed format for vendors we poll. Following a vendor with POST still needs a Business key.
Does the API replace Slack alerts?
No. Use Slack or email for people. Use the API when software should read status. Many teams run both.
Can I watch my own website with this API?
No. Outage Clock follows vendor status feeds. For your own public status page product, see Outage Page.
Looking for an API outage?
For live API incidents and recent outage history, open API outages today at /api-outage. The REST API documentation is for scripts that poll vendor status.
Where is the public board of vendor API incidents?
Open the live incident board at /api-outage. It lists open incidents on API related components from vendors we already poll. The REST API is the account key for scripts, not that public board.