Wellness — Overview, Sleep, Heart Health, Pressure (Stress)
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/wellness \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/wellness', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/wellness', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stealthera.in/api/device/{deviceId}/wellness"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"overview": {},
"sleep": {},
"hearthealth": {},
"pressure": {}
}{
"error": "<string>"
}Grouped Device
Wellness — Overview, Sleep, Heart Health, Pressure (Stress)
Returns wellness metrics for a device in a single response. Triggers two parallel 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", "distance", "calories", "heartRate", "bloodOxygen", "bodyTemp", "sleepHours", "bloodPressure" },
"sleep": { "deviceId", "date", "startTime", "endTime", "totalMinutes", "series", "deepSleepMinutes", "lightSleepMinutes", "remSleepMinutes", "awakeTimes", "sleepHeartRate", "apneaRisk", "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 | distance | number | Distance in metres |
overview | calories | number | Calories burned (kcal) |
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 | startTime / endTime | string | Sleep window start / end (IST) |
sleep | series | array | [{ time, stage }] — 0=awake, 1=light, 2=deep |
sleep | deepSleepMinutes / lightSleepMinutes / remSleepMinutes | number | Minutes in each stage |
sleep | awakeTimes | number | Number of awakenings |
sleep | sleepHeartRate | number | Average heart rate during sleep (BPM) |
sleep | apneaRisk | number | Sleep apnea risk indicator |
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
/
api
/
device
/
{deviceId}
/
wellness
Wellness — Overview, Sleep, Heart Health, Pressure (Stress)
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/wellness \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/wellness', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/wellness', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.stealthera.in/api/device/{deviceId}/wellness"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"overview": {},
"sleep": {},
"hearthealth": {},
"pressure": {}
}{
"error": "<string>"
}