SOS Events & Call Logs
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/sos \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/sos', 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}/sos', 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}/sos"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"sosEvents": [
{}
],
"callLogs": [
{}
]
}{
"error": "<string>"
}SOS
SOS Events & Call Logs
Returns SOS events and the device call log. Each SOS event includes its location and any calls placed by the watch when the SOS was triggered.
Response shape:
{
"deviceId": "string",
"sosEvents": [
{
"alarmTime": "YYYY-MM-DD HH:mm:ss",
"lat": number,
"lng": number,
"callLogs": [
{ "status": "string", "callNumber": "string", "startTime": "string", "endTime": "string" }
]
}
],
"callLogs": [
{ "status": "string", "callNumber": "string", "startTime": "string", "endTime": "string" }
]
}
SOS event fields:
| Field | Type | Description |
|---|---|---|
alarmTime | string | When the SOS was triggered (IST) |
lat / lng | number | SOS location |
callLogs | array | Calls placed for this SOS event |
Call log fields:
| Field | Type | Description |
|---|---|---|
status | string | Voice message / Answered / Not answered |
callNumber | string | Phone number |
startTime | string | Call start time (IST) |
endTime | string | Call end time (IST) |
Notes: Top-level callLogs is the general call history not tied to an SOS event. Both arrays are empty when there is no data.
GET
/
api
/
device
/
{deviceId}
/
sos
SOS Events & Call Logs
curl --request GET \
--url https://api.stealthera.in/api/device/{deviceId}/sos \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.stealthera.in/api/device/{deviceId}/sos', 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}/sos', 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}/sos"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"deviceId": "<string>",
"sosEvents": [
{}
],
"callLogs": [
{}
]
}{
"error": "<string>"
}