GET /api/health returns runtime and database status. GET /api/session returns the authenticated user’s identity, roles, and data currency information.
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
Field
Type
Description
status
string
Always "ok" when the process is serving.
service
string
Always "flux-api".
version
string
FastAPI application version (e.g. "2.0.0").
database
string
Analytical store engine — always "duckdb".
operationalDatabase
string
Control-plane back-end ("postgresql", "duckdb", or empty if disabled).
authMode
string
Active authentication mode ("mock", "entra", or "none").
analyticsReadMode
string
Whether the instance reads from the live mutable store or a published snapshot ("direct" or "snapshot").
analyticsSnapshotVersion
string | null
Present only when analyticsReadMode is "snapshot". The version token of the currently-loaded snapshot, or null if no snapshot has been adopted yet.
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.
Field
Type
Description
authenticated
boolean
true when a valid principal was resolved; false for unauthenticated requests.
authMode
string
Active authentication mode ("mock", "entra", or "none").
user
object | null
null when unauthenticated. Present when authenticated.
user.id
string
Object ID of the authenticated user.
user.displayName
string
Display name from Entra ID.
user.email
string
Principal email address, if available from the claims payload.
user.roles
string[]
Flux roles assigned to the principal, e.g. ["reader"] or ["reader", "admin"].
permissions.canRead
boolean
true when the principal holds the reader or admin role.
permissions.canManageIntegrations
boolean
true when the principal holds the admin role.
dataCurrency.mode
string
Matches analyticsReadMode from /api/health: "direct" or "snapshot".
dataCurrency.snapshotVersion
string | null
Version token of the snapshot this instance is currently serving. Present only in snapshot mode.
dataCurrency.latestVersion
string | null
Version token of the most-recently approved snapshot, read from the operational store. May differ from snapshotVersion if a newer snapshot has been approved but not yet adopted.
dataCurrency.generatedAt
string | null
ISO 8601 timestamp at which the latest snapshot was generated.
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.
Both endpoints return standard FastAPI error shapes. If the analytical store is busy during a long-running writer operation, reads will receive:
{ "detail": "The analytical database is temporarily busy while a synchronization write completes. Retry shortly.", "waitedSeconds": 4.2}
The HTTP status is 503 Service Unavailable with a Retry-After: 15 header.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Flux","colors":{"primary":"#6ee385","light":"#648424","dark":"#6ee385"},"logo":{"light":"https://media.brand.dev/ddd55cce-a2a5-4c9f-84d6-5c99911160f8.svg","dark":"https://media.brand.dev/ddd55cce-a2a5-4c9f-84d6-5c99911160f8.svg","href":"https://fluxop.ai"},"favicon":{"light":"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png","dark":"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png"},"navbar":{"links":[{"href":"https://fluxop.ai/platform","label":"Platform"},{"href":"https://fluxop.ai/solutions","label":"Solutions"},{"href":"https://fluxop.ai/intelligence","label":"Flux Intelligence"},{"href":"https://doc.fluxop.ai/","label":"Docs"}],"primary":{"type":"github","href":"https://github.com/admbe/FluxOp"}},"footer":{"socials":{"github":"https://github.com/admbe/FluxOp"},"links":[{"header":"Product","items":[{"label":"Platform","href":"https://fluxop.ai/platform"},{"label":"Solutions","href":"https://fluxop.ai/solutions"},{"label":"Flux Intelligence","href":"https://fluxop.ai/intelligence"},{"label":"Documentation","href":"https://doc.fluxop.ai/"}]},{"header":"Capabilities","items":[{"label":"Cost allocation","href":"https://doc.fluxop.ai/features/cost-management"},{"label":"Anomaly detection","href":"https://doc.fluxop.ai/api/cost-anomalies"},{"label":"Right-sizing","href":"https://doc.fluxop.ai/features/rightsizing"},{"label":"Feature tour","href":"https://doc.fluxop.ai/introduction"}]},{"header":"Architecture","items":[{"label":"Data path","href":"https://doc.fluxop.ai/operations/data-model"},{"label":"Governance boundary","href":"https://doc.fluxop.ai/features/flux-intelligence"}]}]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"admbe-fluxop-ac62cc7a","hasAudioNarration":false,"actualSubdomain":"admbe-fluxop-ac62cc7a","customDomains":["doc.fluxop.ai"],"gitSource":{"type":"github","owner":"admbe","repo":"flux-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a9ba9179fa468fb9d108770","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"Documentation","count":16},{"language":"default","tag":"API Reference","count":11},{"language":"default","tag":"Endpoints","count":9},{"language":"default","tag":"Core Features","count":6},{"language":"default","tag":"Operations","count":4},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Deployment \u0026 Identity","count":3},{"language":"default","tag":"API Overview","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api/health-session","slug":"/api/health-session","pageMetadata":{"title":"Health and Session Endpoints","sidebarTitle":"Health \u0026 Session","description":"GET /api/health returns runtime and database status. GET /api/session returns the authenticated user's identity, roles, and data currency information.","href":"/api/health-session"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"GET /api/health returns runtime and database status. GET /api/session returns the authenticated user’s identity, roles, and data currency information.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Flux exposes two lightweight endpoints for runtime diagnostics and principal introspection. `,_jsx(_components.code,{children:`/api/health`}),` requires no authentication and is safe to call from infrastructure probes. `,_jsx(_components.code,{children:`/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.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-/api/health`,children:`GET /api/health`}),`\n`,_jsx(_components.p,{children:`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.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` None`]}),`\n`,_jsx(Heading,{level:`3`,id:`response-fields`,children:`Response fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`\"ok\"`}),` when the process is serving.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`service`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`\"flux-api\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`version`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`FastAPI application version (e.g. `,_jsx(_components.code,{children:`\"2.0.0\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`database`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Analytical store engine — always `,_jsx(_components.code,{children:`\"duckdb\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`operationalDatabase`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Control-plane back-end (`,_jsx(_components.code,{children:`\"postgresql\"`}),`, `,_jsx(_components.code,{children:`\"duckdb\"`}),`, or empty if disabled).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authMode`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Active authentication mode (`,_jsx(_components.code,{children:`\"mock\"`}),`, `,_jsx(_components.code,{children:`\"entra\"`}),`, or `,_jsx(_components.code,{children:`\"none\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`analyticsReadMode`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Whether the instance reads from the live mutable store or a published snapshot (`,_jsx(_components.code,{children:`\"direct\"`}),` or `,_jsx(_components.code,{children:`\"snapshot\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`analyticsSnapshotVersion`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Present only when `,_jsx(_components.code,{children:`analyticsReadMode`}),` is `,_jsx(_components.code,{children:`\"snapshot\"`}),`. The version token of the currently-loaded snapshot, or `,_jsx(_components.code,{children:`null`}),` if no snapshot has been adopted yet.`]})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://your-flux-host/api/health`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"service\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"flux-api\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.0.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"database\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"duckdb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"operationalDatabase\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"postgresql\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authMode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"entra\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"analyticsReadMode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"snapshot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"analyticsSnapshotVersion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"20240610T0412Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`get-/api/session`,children:`GET /api/session`}),`\n`,_jsxs(_components.p,{children:[`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 `,_jsx(_components.code,{children:`user`}),` set to `,_jsx(_components.code,{children:`null`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` None — returns the caller’s current authentication state regardless of session validity.`]}),`\n`,_jsx(Heading,{level:`3`,id:`response-fields-2`,children:`Response fields`}),`\n`,_jsxs(_components.p,{children:[`The response is a flat object. The identity fields are provided by App Service Authentication (`,_jsx(_components.code,{children:`X-MS-CLIENT-PRINCIPAL`}),`) and are mapped by Flux’s `,_jsx(_components.code,{children:`AuthService`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authenticated`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` when a valid principal was resolved; `,_jsx(_components.code,{children:`false`}),` for unauthenticated requests.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`authMode`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Active authentication mode (`,_jsx(_components.code,{children:`\"mock\"`}),`, `,_jsx(_components.code,{children:`\"entra\"`}),`, or `,_jsx(_components.code,{children:`\"none\"`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user`})}),_jsx(_components.td,{children:`object | null`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`null`}),` when unauthenticated. Present when authenticated.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user.id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Object ID of the authenticated user.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user.displayName`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Display name from Entra ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user.email`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Principal email address, if available from the claims payload.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`user.roles`})}),_jsx(_components.td,{children:`string[]`}),_jsxs(_components.td,{children:[`Flux roles assigned to the principal, e.g. `,_jsx(_components.code,{children:`[\"reader\"]`}),` or `,_jsx(_components.code,{children:`[\"reader\", \"admin\"]`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`permissions.canRead`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` when the principal holds the `,_jsx(_components.code,{children:`reader`}),` or `,_jsx(_components.code,{children:`admin`}),` role.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`permissions.canManageIntegrations`})}),_jsx(_components.td,{children:`boolean`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`true`}),` when the principal holds the `,_jsx(_components.code,{children:`admin`}),` role.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dataCurrency.mode`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Matches `,_jsx(_components.code,{children:`analyticsReadMode`}),` from `,_jsx(_components.code,{children:`/api/health`}),`: `,_jsx(_components.code,{children:`\"direct\"`}),` or `,_jsx(_components.code,{children:`\"snapshot\"`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dataCurrency.snapshotVersion`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`Version token of the snapshot this instance is currently serving. Present only in snapshot mode.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dataCurrency.latestVersion`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Version token of the most-recently approved snapshot, read from the operational store. May differ from `,_jsx(_components.code,{children:`snapshotVersion`}),` if a newer snapshot has been approved but not yet adopted.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`dataCurrency.generatedAt`})}),_jsx(_components.td,{children:`string | null`}),_jsx(_components.td,{children:`ISO 8601 timestamp at which the latest snapshot was generated.`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`dataCurrency`}),` is read from the operational store on a best-effort basis. If the operational store is unreachable the `,_jsx(_components.code,{children:`dataCurrency`}),` block will contain only `,_jsx(_components.code,{children:`mode`}),` and all other fields will be absent — the session response itself will still return `,_jsx(_components.code,{children:`200`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`example-2`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authenticated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"authMode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"entra\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"user\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Alice Nguyen\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"alice@contoso.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"roles\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"reader\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"admin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"permissions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canRead\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canManageIntegrations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"canSyncIntegrations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dataCurrency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"snapshot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"snapshotVersion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"20240610T0412Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"latestVersion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"20240610T0412Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"generatedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-06-10T04:12:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error responses`}),`\n`,_jsx(_components.p,{children:`Both endpoints return standard FastAPI error shapes. If the analytical store is busy during a long-running writer operation, reads will receive:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"detail\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The analytical database is temporarily busy while a synchronization write completes. Retry shortly.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"waitedSeconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4.2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The HTTP status is `,_jsx(_components.code,{children:`503 Service Unavailable`}),` with a `,_jsx(_components.code,{children:`Retry-After: 15`}),` header.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Health and Session Endpoints","sidebarTitle":"Health \u0026 Session","description":"GET /api/health returns runtime and database status. GET /api/session returns the authenticated user's identity, roles, and data currency information.","href":"/api/health-session"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"GET /api/health","slug":"get-/api/health","depth":2,"children":[{"title":"Response fields","slug":"response-fields","depth":3,"children":[]},{"title":"Example","slug":"example","depth":3,"children":[]}]},{"title":"GET /api/session","slug":"get-/api/session","depth":2,"children":[{"title":"Response fields","slug":"response-fields-2","depth":3,"children":[]},{"title":"Example","slug":"example-2","depth":3,"children":[]}]},{"title":"Error responses","slug":"error-responses","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"admbe-fluxop-ac62cc7a","siteName":"Flux","title":"Health and Session Endpoints - Flux","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-05T05:30:01.327Z","originalFileLocation":"api/health-session.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"GET /api/health returns runtime and database status. GET /api/session returns the authenticated user\u0026#x27;s identity, roles, and data currency information.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Flux\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://media.brand.dev/1f0667e5-0bb8-4e72-bf5b-5a507dfcf371.png\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Health and Session Endpoints - Flux\">\u003cmeta data-mint-head property=\"og:description\" content=\"GET /api/health returns runtime and database status. GET /api/session returns the authenticated user\u0026#x27;s identity, roles, and data currency information.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Flux\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://doc.fluxop.ai/api/health-session\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://admbe-fluxop-ac62cc7a.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Health+and+Session+Endpoints\u0026amp;description=GET+%2Fapi%2Fhealth+returns+runtime+and+database+status.+GET+%2Fapi%2Fsession+returns+the+authenticated+user%27s+identity%2C+roles%2C+and+data+currency+information.\u0026amp;theme=28edf74363cae36406ae63a2\u0026amp;signature=2bd6c09aeb1f2bc8037c8f06970039fc5bf70e8dfadd0dba97fb25825a0ab481\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Health and Session Endpoints - Flux\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"GET /api/health returns runtime and database status. GET /api/session returns the authenticated user\u0026#x27;s identity, roles, and data currency information.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://admbe-fluxop-ac62cc7a.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Health+and+Session+Endpoints\u0026amp;description=GET+%2Fapi%2Fhealth+returns+runtime+and+database+status.+GET+%2Fapi%2Fsession+returns+the+authenticated+user%27s+identity%2C+roles%2C+and+data+currency+information.\u0026amp;theme=28edf74363cae36406ae63a2\u0026amp;signature=2bd6c09aeb1f2bc8037c8f06970039fc5bf70e8dfadd0dba97fb25825a0ab481\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/admbe-fluxop-ac62cc7a/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Flux\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6ee385\">\u003clink data-mint-head rel=\"canonical\" href=\"https://doc.fluxop.ai/api/health-session\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/health-session.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://doc.fluxop.ai/#organization\",\"name\":\"Flux\",\"url\":\"https://doc.fluxop.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://media.brand.dev/ddd55cce-a2a5-4c9f-84d6-5c99911160f8.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://doc.fluxop.ai#website\",\"name\":\"Flux\",\"url\":\"https://doc.fluxop.ai\",\"publisher\":{\"@id\":\"https://doc.fluxop.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://doc.fluxop.ai/api/health-session#webpage\",\"url\":\"https://doc.fluxop.ai/api/health-session\",\"name\":\"Health and Session Endpoints\",\"description\":\"GET /api/health returns runtime and database status. GET /api/session returns the authenticated user's identity, roles, and data currency information.\",\"dateModified\":\"2026-09-05T05:30:01.327Z\",\"isPartOf\":{\"@id\":\"https://doc.fluxop.ai#website\"},\"breadcrumb\":{\"@id\":\"https://doc.fluxop.ai/api/health-session#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://doc.fluxop.ai/api/health-session#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Flux\",\"item\":\"https://doc.fluxop.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Health and Session Endpoints\",\"item\":\"https://doc.fluxop.ai/api/health-session\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://doc.fluxop.ai/api/health-session#article\",\"headline\":\"Health and Session Endpoints\",\"name\":\"Health and Session Endpoints\",\"description\":\"GET /api/health returns runtime and database status. GET /api/session returns the authenticated user's identity, roles, and data currency information.\",\"url\":\"https://doc.fluxop.ai/api/health-session\",\"mainEntityOfPage\":{\"@id\":\"https://doc.fluxop.ai/api/health-session#webpage\"},\"dateModified\":\"2026-09-05T05:30:01.327Z\",\"publisher\":{\"@id\":\"https://doc.fluxop.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://doc.fluxop.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Flux\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Flux\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/health-session.md","siteName":"Flux","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Overview","pages":[{"title":"Flux REST API — Base URL, Auth, and Endpoint Index","sidebarTitle":"Overview","href":"/api/overview"},{"title":"Flux API: Authentication, Roles, and Session Shape","sidebarTitle":"Authentication","description":"Auth modes (mock/entra/none), Entra Easy Auth claim decoding, Flux.Reader and Flux.Admin roles, and the GET /api/session response shape.","href":"/api/authentication"}]},{"group":"Endpoints","pages":[{"title":"Health and Session Endpoints","sidebarTitle":"Health \u0026 Session","href":"/api/health-session"},{"title":"Inventory and Changes Endpoints","sidebarTitle":"Inventory \u0026 Changes","description":"Azure inventory with cost and opportunity enrichment, consecutive-snapshot diffs, and change-volume anomaly baselines. Supports CSV and XLSX export.","href":"/api/inventory-changes"},{"title":"Cost Anomaly Endpoints","sidebarTitle":"Cost Anomalies","href":"/api/cost-anomalies"},{"title":"Reports Endpoints: Cost, FOCUS, Workload, Governance","sidebarTitle":"Reports","href":"/api/reports"},{"title":"Opportunities and Evidence Endpoints","sidebarTitle":"Opportunities","href":"/api/opportunities"},{"title":"Right-Sizing Recommendations and Planning Boards API","sidebarTitle":"Right-Sizing","href":"/api/rightsizing"},{"title":"Ask Flux Intelligence and Semantic Exploration API","sidebarTitle":"Intelligence","href":"/api/intelligence"},{"title":"Azure Integration and Administration API Endpoints","sidebarTitle":"Integrations","href":"/api/integrations"},{"title":"Virtual Tags: Dimensions, Rules, and Showback Reports","sidebarTitle":"Virtual Tags","href":"/api/virtual-tags"}]}]}]},"basePath":"","title":"Health and Session Endpoints - Flux","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}