Docs

Getting started, custom domains, health checks, the REST API, and webhooks. The in-app reference with copy-paste commands is at /app/#/docs/api.

Getting started

  1. Create an account. Signup does not ask for a card. The 14-day trial starts when you create the account. Add a card later from Billing if you want the paid plan.
  2. Create a client status page and add components.
  3. Share the page. On statusfleet.app the public page is the app route for that slug. On a custom domain the same page is served at /.
  4. Optional: add subscribers, a Slack or webhook integration, and HTTPS uptime monitors. Write the health URL so a failed dependency returns 503 before the check times out.

One account can hold up to 10 status pages and 20 monitors. A monitor checks an HTTPS URL with GET or HEAD every 1, 5, or 10 minutes. After three failed checks in a row it opens an incident. After two passing checks in a row it resolves that incident. If someone already resolved it, the monitor does not post another update. Details are under Health checks.

Health checks

Point a monitor at a URL that answers quickly. A handler that waits on the database until the check gives up is worse than one that fails. The monitor sits for the whole timeout, and the result is a connection error instead of a 503.

Keep the handler cheap. Do not require a login. The checker sends no Authorization header. It uses GET or HEAD and the user agent StatusFleet-Monitor. Check the dependencies the service needs, such as the database. Give each dependency its own short timeout, well under the 10 second monitor timeout, and return 503 as soon as one fails or times out. Return 200 when they pass. Send Cache-Control: no-store so a cache cannot keep an old 200 or 503.

A monitor added in the app uses the defaults below. The form sets the URL, the method, the interval, and an optional keyword. It does not change the timeout, the status range, or the thresholds.

The checker follows up to 3 redirects, then fails. Do not send it through a login page.

Keep each dependency timeout well under 10 seconds. This handler gives the database ping 2 seconds, then returns 503:

const dependencyTimeoutMs = 2000;

app.get("/health", async (_req, res) => {
  res.set("Cache-Control", "no-store");
  try {
    await pingDatabase(AbortSignal.timeout(dependencyTimeoutMs));
    res.status(200).type("text/plain").send("ok");
  } catch {
    res.status(503).type("text/plain").send("unavailable");
  }
});

function pingDatabase(signal) {
  // Pass signal, or the driver's timeout, into the ping.
  // A checkout from the pool with no limit will hang the handler.
  return db.query("select 1", { signal });
}

Custom domains

Each status page can have one hostname, such as status.client.com. The hostname has to be a subdomain of a registrable domain. Apex names such as example.com and example.co.uk are rejected, and names under statusfleet.app are rejected.

  1. In the page editor, add the hostname.
  2. At the client’s DNS, create status.client.com as a CNAME to customers.statusfleet.app.
  3. Use Check in the editor until hostname status and SSL are both active.

A mapped custom domain serves that client’s status page, including paths such as /pricing. It does not serve this marketing site. An unknown *.statusfleet.app name returns 404 unless it is an active custom hostname.

API reference

Version 1 is an account API. Create a key on the dashboard. The full key is shown once and looks like sf_live_<prefix>_<secret>. Send it as Authorization: Bearer. The Supabase gateway also expects the project publishable key in the apikey header. The bearer key chooses the account. Another account’s page, component, or incident is a 404.

export API="https://wfhcckdxmrnhccakafyh.supabase.co/functions/v1/api"
export SUPABASE_ANON_KEY="<project publishable key>"
export STATUSFLEET_API_KEY="sf_live_..."

curl "$API/v1/pages" \
  -H "apikey: $SUPABASE_ANON_KEY" \
  -H "Authorization: Bearer $STATUSFLEET_API_KEY"

Routes used by the in-app reference:

New incidents start as investigating. A resolved update restores linked components when no other open incident still affects them. Creating or updating an incident, and changing a component status, uses the same path as the dashboard, so webhooks, Slack, and subscriber email send as they do there.

Sixty requests per key are allowed each minute. The 61st returns 429 and a Retry-After header. Errors use {"error":{"code":"...","message":"..."}}.

OpenAPI document and the in-app command reference.

Webhooks and Slack

A page integration is either a Slack incoming webhook or an HTTPS webhook you host. Slack URLs have to be https://hooks.slack.com/services/.... Slack messages are unsigned. Other webhooks must be HTTPS. StatusFleet does not follow redirects, and it refuses loopback, link-local, and private addresses.

A customer webhook is a JSON body. The payload includes id, event, and page. Incident events include incident and may include update. A component change uses event component.status_changed and a component object with status and previous_status.

Signed webhooks send two headers:

Verify the signature against the raw body before you trust the JSON. Compare in constant time and reject a timestamp that is too far from now.