Wellness — Overview, Sleep, Heart Health, Pressure (Stress)
Grouped Device
Wellness — Overview, Sleep, Heart Health, Pressure (Stress)
Returns wellness metrics for a device in a single response. Triggers two parallel Firestore reads (healthData history + live_devices fallback for the overview snapshot).
Replaces individual endpoints: /overview, /sleep, /hearthealth, /pressure
Response shape:
{
"deviceId": "string",
"overview": { "deviceId", "date", "steps", "heartRate", "bloodOxygen", "bodyTemp", "sleepHours", "bloodPressure" },
"sleep": { "deviceId", "date", "totalMinutes", "series", "deepSleepMinutes", "lightSleepMinutes", "awakeTimes", "sleepScore" },
"hearthealth": { "deviceId", "date", "diagnosis", "afibRisk", "hrvScore", "series" },
"pressure": { "deviceId", "date", "series", "average", "level" }
}
Sub-field details:
| Sub-object | Field | Type | Description |
|---|---|---|---|
overview | steps | number | Step count |
overview | heartRate | number | BPM |
overview | bloodOxygen | number | SpO2 % |
overview | bodyTemp | number | °C |
overview | sleepHours | number | Total sleep hours |
overview | bloodPressure | object | { systolic, diastolic } mmHg |
sleep | series | array | [{ time, stage }] — 0=awake, 1=light, 2=deep |
sleep | sleepScore | number | Score 0–100 |
hearthealth | afibRisk | string | Low / Medium / High |
hearthealth | hrvScore | number | HRV score 0–100 |
pressure | series | array | [{ time, value }] — stress index 0–100 |
pressure | level | string | Low / Normal / High |
GET
Wellness — Overview, Sleep, Heart Health, Pressure (Stress)