Flux exposes two lightweight endpoints for runtime diagnostics and principal introspection. /api/health requires no authentication and is safe to call from infrastructure probes. /api/session also requires no authentication — it always returns the caller’s current identity and data-currency state, making it the authoritative source for both unauthenticated login redirects and authenticated shell state.
GET /api/health
Returns the runtime status of the Flux API, its analytical store, and the operational back-end. No authentication is required — this endpoint is designed to be called by load-balancer health probes and uptime monitors.
Authentication: None
Response fields
Example
GET /api/session
Returns the caller’s identity and the data-currency provenance block used by the shell. The endpoint always responds — it does not enforce authentication — making it safe to call before login to check whether the user is signed in. Authenticated callers receive a full identity payload; unauthenticated callers receive the same response shape with user set to null.
Authentication: None — returns the caller’s current authentication state regardless of session validity.
Response fields
The response is a flat object. The identity fields are provided by App Service Authentication (X-MS-CLIENT-PRINCIPAL) and are mapped by Flux’s AuthService.
dataCurrency is read from the operational store on a best-effort basis. If the operational store is unreachable the dataCurrency block will contain only mode and all other fields will be absent — the session response itself will still return 200.
Example
Error responses
Both endpoints return standard FastAPI error shapes. If the analytical store is busy during a long-running writer operation, reads will receive:
The HTTP status is 503 Service Unavailable with a Retry-After: 15 header.