Operations

Verify the public liveness check with no sign in

Use this page to confirm the public liveness check shows only live or not live, with no version, no uptime, and no dependency detail, and to confirm dependency readiness stays private for signed in staff.

Live check result

The check below fetches only /api/health with no sign in and no cookies. It runs fresh each time with an 8000 millisecond timeout and one retry only for a transient status or a network failure. It never fetches /api/readiness and it never stores the response. It reads ok, status, service, and checked_at with a top-level field taking precedence over any nested data field, and it accepts the envelope form and the legacy flat form on read.

Verification result

The check has not run yet.

Checked time and response time will appear after the check.

This page fetches only /api/health. It never fetches /api/readiness, it never sends cookies, and it never stores the response in browser storage. A response with an extra field, a cacheable header, an ETag, or a cookie is shown as did not complete, with no extra value displayed.

What this check verifies

  • Unauthenticated request with no cookies: Not checked yet
  • Fresh response, private and not stored: Not checked yet
  • No ETag for reuse: Not checked yet
  • Response held only allowed fields: Not checked yet
  • No version, uptime, or dependency detail: Not checked yet
  • Readiness was not called from this page: Pass
  • Only live, not live, or did not complete is shown: Not checked yet

What a live result means

  • The service answered at /api/health with status live and service campus
  • The response held only status, service, and checked time, with ok true, read with top-level precedence over any nested data field, in envelope form or in the legacy flat form
  • The response held no version, no uptime, no dependency name, no address, no configuration value, and no secret
  • The response was private and not stored, with no ETag for reuse and no cookie set, so each check runs fresh

Corrected contract map for GET /api/health

Use this table as the contract this check enforces. Field names, types, and required status below match the backend schema on Health endpoints and the status page. A response that does not match a row is shown as did not complete, not as live or not live.

Endpoint, status, required fields with type, and outcome
Endpoint and statusRequired fields, with typeHeaders requiredOutcome on this page
GET /api/health, 200ok boolean true, required. data.status string live, required. data.service string campus, required. data.checked_at string ISO 8601 UTC with Z or null, required key present, missing is not null. No other field in the top level except ok and data, and no other field in data.Content-Type application/json, required. Cache-Control private and no-store, required. ETag absent, required. Set-Cookie absent, required.Live, only when every field and header above passes.
GET /api/health, 503ok boolean false, required. error string plain sentence, required. code string service_unavailable, required. data field absent, required. No other top level field.Content-Type application/json, required. Cache-Control private and no-store, required. ETag absent, required. Set-Cookie absent, required.Not live, only when every field and header above passes.
GET /api/health, any other status, non JSON, timeout, or network failureNo field is trusted. A 200 without checked_at present, a 503 without code service_unavailable, and any answer with an extra field are not live and not not live.A failure of any header above also prevents a live or not live outcome.Did not complete. Retry once only for 408, 502, 503, or 504, a network failure, or a timeout. Never retry 429.
GET /api/readinessNot called from this page. Signed in staff only, in the signed in app. An unsigned call is 401 unauthenticated and a call without the covering role is 403 forbidden, with no data field.Not checked on this page, because this page never calls the route.No outcome on this page. Readiness was not called from this page: Pass.

Other frontend call sites checked against the same contract: the status page and the health endpoints monitor already require checked_at present, code service_unavailable, and no cookie, and this page now matches them. POST /api/public/request callers already match on name, email, org, role, message, kind, page, website, and X-Request-Id, with required status, limits, and enums as documented in the form field standard.

How to verify with curl in a test workspace

Run these commands from a test environment before publishing. Do not run the liveness check with a signed in cookie.

curl -i https://campus.appmajic.ai/api/health
curl -s https://campus.appmajic.ai/api/health
  • Confirm Content-Type is application/json and Cache-Control contains private and no-store, with no ETag header and no Set-Cookie header
  • Confirm the body holds ok true and data with status live, service campus, and checked time present in UTC with Z, or null, and no other field, or the legacy flat form with ok true, status live, service campus, and checked time, and no other field. When the same field appears at top level and inside data, the top-level value is the one read on Status, on Health endpoints, and on this page
  • Confirm a 503 body holds ok false, a plain error sentence, and code service_unavailable, with no data field
  • Confirm no version, uptime, build, dependency, address, or configuration field appears in any liveness response

Read Health endpoints for the exact schemas, Caching strategy for headers by resource class, and Configuration and safe defaults for fail fast checks before publishing.

Dependency readiness stays private

Dependency readiness is a different check from liveness. It runs only with sign in, inside the signed in app, and it never runs on this page or on the public Status page.

Readiness route and sign in

  • Route is GET /api/readiness, with MAJIC sign in required
  • An unsigned call returns 401 with code unauthenticated and no data field, and a call with a role that does not cover the check returns 403 with code forbidden and no data field
  • Neither answer carries a checks object, because no check was run

What readiness shows

  • Success holds data with checks for database, sign in, and workspace store, each ready or not ready only, plus status ready and checked time
  • No readiness response holds a secret value, a token, a connection string, a database name, an internal address, a build version, an environment mode, or a configuration value
  • A live result on this page is not a ready result, and a ready result in the app is not a live result on this page

If a check does not complete on this page, check the connection and choose Check again. If the check still does not complete, open Status for the public live check with a support reference, or use Ask a question or give feedback and name the date and time you checked.

Confirm live before you publish

Run the liveness check here, then run readiness only with sign in inside the signed in app, and stop publishing on any failure.