Vitals — Heart Rate, Blood Pressure, Blood Oxygen, Body Temp
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/vitals \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/vitals', 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}/vitals', 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}/vitals"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"heartrate": {},
"bloodpressure": {},
"bloodoxygen": {},
"bodytemp": {}
}{
"error": "<string>"
}Grouped Device
Vitals — Heart Rate, Blood Pressure, Blood Oxygen, Body Temp
Returns all vital-sign metrics for a device in a single response. Triggers one history read.
Replaces individual endpoints: /heartrate, /bloodpressure, /bloodoxygen, /bodytemp
Response shape:
{
"deviceId": "string",
"heartrate": { "deviceId", "series", "average", "max", "min" },
"bloodpressure": { "deviceId", "date", "series", "avgSystolic", "avgDiastolic", "warningRecords" },
"bloodoxygen": { "deviceId", "series", "average", "max", "min", "warningRecords" },
"bodytemp": { "deviceId", "date", "series", "average", "max", "min", "warningRecords" }
}
Sub-field details:
| Sub-object | Field | Type | Description |
|---|---|---|---|
heartrate | series | array | [{ time: string, value: number }] — BPM readings |
heartrate | average / max / min | number | BPM stats |
bloodpressure | series | array | [{ time, systolic, diastolic }] — 24 hourly readings |
bloodpressure | avgSystolic / avgDiastolic | number | mmHg averages |
bloodpressure | warningRecords | array | Readings that exceeded safe thresholds |
bloodoxygen | series | array | [{ time: string, value: number }] — SpO2 readings |
bloodoxygen | warningRecords | array | Readings below safe threshold |
bodytemp | series | array | [{ time: string, value: number }] — °C readings |
bodytemp | warningRecords | array | Readings outside normal range |
GET
/
api
/
device
/
{deviceId}
/
vitals
Vitals — Heart Rate, Blood Pressure, Blood Oxygen, Body Temp
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/vitals \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/vitals', 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}/vitals', 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}/vitals"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"heartrate": {},
"bloodpressure": {},
"bloodoxygen": {},
"bodytemp": {}
}{
"error": "<string>"
}