Skip to content
Extending Kemble

Status API

Kemble’s status as JSON, Atom and RSS, with no key and no sign-in, and a signed webhook when our team posts an update.

Kemble’s status is open: no key, no sign-in, CORS *. Everything lives at https://status.kemble.io and works even when Kemble itself is unreachable. Please poll at most once a minute: the answers are cached for 30 seconds, so polling faster gets you nothing new.

What you can read

curl https://status.kemble.io/api/v1/status.json
  • GET /api/v1/status.json: the overall state. status.indicator is none, minor, major, maintenance or unknown, and status.description is the banner in words.
  • GET /api/v1/summary.json: status, every component, partners, open incidents and active maintenance.
  • GET /api/v1/components.json: components with their state, since when, uptime over 90 days and how much of that time we measured (uptime90.coverage), and partners.
  • GET /api/v1/incidents.json: open and recent incidents, with every published update.
  • GET /api/v1/maintenances.json: planned maintenance.
  • GET /api/v1/metrics/<id>/<period>.json: one graph. id is api-response-p50, api-response-p95, kbuddy-answer, job-wait, file-read or realtime-connect, and period is day, week or month.
  • GET /feed.atom and GET /feed.rss: the last 25 incidents and maintenance windows.
  • GET /live.json: the whole page’s data.

Fields are only ever added. schema is the version. A component’s state is operational, degraded, down, maintenance, unknown, off or idle, and stateLabel says it in words. state: unknown means we could not check, never that all is well. An incident’s edited is true once it has been corrected after it was published, and the feeds say Edited too.

Told by webhook

curl -X POST https://kemble.io/api/status/subscribe \
  -H 'content-type: application/json' \
  -d '{"channel":"webhook","target":"https://your.example/hook","products":["work"],"rows":["api"]}'

products and rows are optional, and rows takes the ids from components.json. We send {"type":"status.subscription.verify","challenge":"…"} to your address, and it must answer 2xx with the challenge in the first 64 KiB of its body. You then get the signing secret and a manageToken, once. A webhook that is already subscribed answers not_verified and keeps its secret: to start again, stop it with its token. One domain gets at most 10 of these checks a minute.

Each delivery carries x-kemble-event: status.incident.update, x-kemble-timestamp and x-kemble-signature, the HMAC-SHA256 of <timestamp>.<body> in hex, signed the same way as Kemble’s other outgoing webhooks. A delivery is tried up to six times, with back-off. To stop, send your manageToken to POST https://kemble.io/api/status/subscriptions/unsubscribe?token=<manageToken>.