IotHub
  1. alarm
IotHub
  • README
  • Update Record
  • 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
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
  • fence
    • fencePage
      POST
    • fenceInfo
      POST
    • addFence
      POST
    • saveFence
      POST
    • delFence
      POST
    • fenceDevices
      POST
    • fenceDeviceUpdate
      POST
    • fenceDeviceDel
      POST
    • fenceDeviceAdd
      POST
  • push
    • README
  • video
    • H5 page
    • H5 Page-V2
    • liveVideo
    • playBackList
    • historicalUpload
    • playBack
    • replaySet
    • taskPage
    • taskDelete
    • getNodes
  • alarm
    • alarmTypeList
      POST
    • alarmFilePage
      POST
    • alarmFileByAlarmId
      POST
    • alarmHistoryPage
      POST
    • alarmPageByUser
      POST
  • audio
    • README
    • talk
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
  • fleet
    • faceRecordPage
  • gps
    • historyData
  • Protocol Analysis
    POST
  1. alarm

alarmFileByAlarmId

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/alarm/file/id

Request

Header Params
Authorization
string 
required
Body Params application/json
alarmId
string  | null 
required
Example
{
    "alarmId": "string"
}

Request 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/file/id' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "alarmId": "string"
}'

Responses

🟢200Success
application/json
Body
code
integer  | null 
optional
data
array[object (ApiAlarmFileVO) {8}]  | null 
optional
alarmId
string  | null 
optional
alarmId
alarmType
string  | null 
optional

alarmType:acc、accOff、accOff...

value-description key ------------------------------------------------------ ACC change acc Acc off alert accOff Acc on alert accOn Collision Alert bang Both Hands Off Steering Wheel Warning bothHandsOffSteeringWheel Sim card change alert card Too close alert closeProximity Door detection alert door Move alert drift Driver abnormal alert driverBehaviorMonitoringFailure Driver Change Event driverChange Driver Not Detected Warning driverNotDetected Driving Assistance Function Failure drivingAssistanceFailure Low external power alert external Low power protection alert externalProtection Forward collision alert forwardCollisionWarning Frequent Lane Change Warning frequentLaneChange Phone alert handheldPhoneCall Turn Over Alerts hardBraking Enter geo-fence inFence Enter GPS blind zone alert inGpsBlindSpots Low battery alert internal Lane shift alert laneShift Distracted driving alert longTimeWithoutLookingAhead Obstacle Warning obstacle Acc off alert off Offline alert offline Booting notification on Power cut off alert outage Exit geo-fence outFence Exit GPS blind zone alert outGpsBlindSpots Pedestrian collision alert pedestrianBang Power cut off alert powerCut Harsh Acceleration Alert rapid Road Sign Over Limit Warning roadSignOverLimit Road Sign Recognition Warning roadSignRecognition Vibration alert shake Harsh Brake Alert slow Smoke alert smoking SOS alert sos Overspeed alert speed Tamper alert tamper Fatigue driving alert tired Harsh Turn Alert wheel

deviceName
string  | null 
optional
deviceName
deviceId
string  | null 
optional
deviceId
alarmTime
string  | null 
optional
alarmTime yyyy-MM-dd HH:mm:ss UTC-0
fileUrl
string  | null 
optional
File download address
fileType
string  | null 
optional
File type Picture 00 Audio 01 Audio and video 02 Text 03 Others 04
fileSize
number  | null 
optional
fileSize unit(MB)
msg
string  | null 
optional
Example
{
  "code": 0,
  "data": [
    {
      "alarmId": "",
      "alarmType": "",
      "deviceName": "",
      "deviceId": "",
      "alarmTime": "",
      "fileUrl": "",
      "fileType": "",
      "fileSize": 0.0
    }
  ],
  "msg": ""
}
Modified at 2025-03-27 02:10:44
Previous
alarmFilePage
Next
alarmHistoryPage
Built with