Run in Apifox
Contains all warning information Query the historical alarm records of the device, and the time interval for each query must be within 30 days; The source of the alarmType comes from the 'alarmTypeList'
Request Add parameter in header Authorization
Example: Authorization: ********************
Body Params application/json
{
"pageSize" : "10" ,
"pageIndex" : "1" ,
"deviceIds" : "string" ,
"startTime" : "string" ,
"endTime" : "string" ,
"alarmType" : "string"
} Request Code Samples
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/alarm/alarmPage' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"pageSize": "10",
"pageIndex": "1",
"deviceIds": "string",
"startTime": "string",
"endTime": "string",
"alarmType": "string"
}' Responses application/json Generate Code
{
"code" : 0 ,
"data" : {
"records" : [
{
"id" : "" ,
"deviceName" : "" ,
"deviceId" : "" ,
"alarmTs" : "" ,
"alarmTsEnd" : "" ,
"alarmType" : "" ,
"lat" : 0.0 ,
"lon" : 0.0 ,
"alarmText" : 0.0 ,
"serialNo" : "" ,
"fenceId" : ""
}
] ,
"total" : 0 ,
"size" : 0 ,
"current" : 0
} ,
"msg" : ""
} Modified at 2025-08-11 07:55:45