Cognitive Wellness
POST /api/v1/health/wellness
Send an EEG payload with optional session context and an optional screenshot. Pi returns a wellness summary, stress band, fatigue estimate, and personalized coaching recommendations — all via an async job.
This endpoint provides wellness coaching support. It is not clinical treatment or a psychiatric diagnosis. Stress bands and fatigue estimates are heuristic labels, not validated clinical scales. Honor
risk_flags in your UI and encourage users to seek qualified care when appropriate.Request
Body parameters
The EEG payload and session metadata.
Arbitrary JSON session context. Include goals (
session_goal), self-reported stress (self_reported_stress 0–10), game metrics, locale, and app identifiers. Must serialize to at most 16,000 characters.Response
Returns202 Accepted. An optional Idempotency-Key header is supported; scope is health_wellness.
Polling for results
Completed job output
A brief, human-readable narrative of the session’s cognitive state.
Heuristic stress label, e.g.
"low", "moderate", "elevated". Not a clinical scale.Fatigue proxy between
0 (alert) and 1 (high fatigue).Personalized coaching message for the user.
List of actionable wellness recommendations, e.g. stretch breaks, breathing exercises.
Optional clinician-oriented summary when MedGemma is configured. Notes that EEG patterns are non-diagnostic.
Signals that warrant surfacing in your UX, e.g. indicators suggesting professional consultation.
Seizure flag from the MetaBCI sidecar when configured.
null when unavailable.Session metadata including
paradigm, has_image, and attention_proxy.Mandatory disclaimer text.
Use cases
Focus / burnout-adjacent coaching Passcontext.session_goal (e.g. "post_work_decompression") and optionally context.self_reported_stress. The response coaching message and recommendations are tailored to the stated goal.
Cognitive game / UI-assisted sessions
Include input.image_data with a screenshot of the game or task interface. When HuatuoGPT is configured, the vision branch merges UI context into the wellness narrative. Diagnostics will show vision routing when enabled.