IotHub
  1. alarm
IotHub
  • README
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
      • commandInfoList
      • cutOilElectric
      • getConfig
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • deviceTraffic
      POST
    • deviceSensorData
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
      POST
    • fenceInfo
      POST
    • addFence
      POST
    • saveFence
      POST
    • delFence
      POST
    • fenceDevices
      POST
    • fenceDeviceUpdate
      POST
    • fenceDeviceDel
      POST
    • fenceDeviceAdd
      POST
  • push&Webhook
    • README
  • video
    • H5 page
    • H5 Page-V2
    • history
      • README
      • playBackList
      • historicalUpload
      • playBack
      • replaySet
      • taskPage
      • taskStop
      • taskDelete
    • live
      • liveVideo
      • liveVideoControl
    • getNodes
  • alarm
    • Alert Types
    • alarmTypeList
      POST
    • alarmFilePage
      POST
    • alarmFileByAlarmId
      POST
    • alarmHistoryPage
      POST
    • alarmPageByUser
      POST
  • audio
    • README
    • talk「Deprecated」
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
    • captureRecord
  • fleet
    • faceRecordPage
    • rfidPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. alarm

alarmPageByUser

POST
/v2/openapi/alarm/user/page

Query the device history alarms of the currently logged in user by page. The interface data is for devices that the user has permission to use, and does not include alarms for lower-level customer devices.

Request

Authorization
Add parameter in header
Authorization
Example:
Authorization: ********************
Header Params

Body Params application/json

Example
{
    "pageSize": "10",
    "pageIndex": "1",
    "start": "string",
    "end": "string",
    "alarmType": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/alarm/user/page' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "pageSize": "10",
    "pageIndex": "1",
    "start": "string",
    "end": "string",
    "alarmType": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
  "code": 0,
  "data": {
    "records": [
      {
        "id": "",
        "deviceName": "",
        "deviceId": "",
        "alarmTs": "",
        "alarmTsEnd": "",
        "alarmType": "",
        "lat": 0.0,
        "lon": 0.0,
        "alarmText": 0.0,
        "serialNo": "",
        "fenceId": "",
        "fileNum": 0
      }
    ],
    "total": 0,
    "size": 0,
    "current": 0
  },
  "msg": ""
}
Modified at 2025-03-27 02:10:44
Previous
alarmHistoryPage
Next
README
Built with