Diagnostics — ECG
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/diagnostics \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/diagnostics', 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}/diagnostics', 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}/diagnostics"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"ecg": {}
}{
"error": "<string>"
}Grouped Device
Diagnostics — ECG
Returns ECG records and AI interpretation for a device. Triggers one history read.
Replaces individual endpoint: /ecg
Response shape:
{
"deviceId": "string",
"ecg": {
"deviceId": "string",
"date": "YYYY-MM-DD",
"records": [{ "time": "string", "wave": [number] }],
"aiResult": "string"
}
}
ECG sub-fields:
| Field | Type | Description |
|---|---|---|
records | array | ECG measurement records (empty if no readings taken) |
records[].time | string | Measurement timestamp (IST) |
records[].wave | number[] | Raw ECG waveform data points |
aiResult | string | AI-generated ECG interpretation |
GET
/
api
/
device
/
{deviceId}
/
diagnostics
Diagnostics — ECG
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/diagnostics \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/diagnostics', 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}/diagnostics', 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}/diagnostics"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"ecg": {}
}{
"error": "<string>"
}