Run in Apifox
Get the alert history for the specified device IDs and the requested period. The date range should not exceed 10 minutes. The devIds parameter can include up to 10 device IDs.
Request Add parameter in header x-api-key
Example: x-api-key: ********************
Body Params application/json
{
"devIds" : [
"string"
] ,
"startDate" : "stringst" ,
"endDate" : "stringst" ,
"startTime" : "string" ,
"endTime" : "string" ,
"alertType" : [
"string"
]
} Request Code Samples
curl --location --request POST '/alerts/bulk-history' \
--header 'token;' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"devIds": [
"string"
],
"startDate": "stringst",
"endDate": "stringst",
"startTime": "string",
"endTime": "string",
"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