Get the history of alerts for requested period and device ID. The date range should not be more than 3 days.
Request
Add parameter in header x-api-key
Example:x-api-key: ********************
Body Params application/json
{
"devId": "string",
"startDate": "stringst",
"endDate": "stringst",
"alertType": [
"string"
]
}
Request Code Samples
curl --location --request POST '/alerts/history' \
--header 'token;' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"devId": "string",
"startDate": "stringst",
"endDate": "stringst",
"alertType": [
"string"
]
}'
Responses
{
"status": 0,
"data": [
{
"devId": "string",
"tmTime": 0,
"alarmCode": 0,
"alarmName": "string",
"alarmDescription": "string",
"alarmValue": "string",
"lat": 0,
"lng": 0,
"address": "string"
}
]
}
Modified at 2025-02-28 08:12:14