1. command
IotHub
  • README
  • token
    • createToken
      POST
    • destroyToken
      POST
  • customer
    • customerPage
      POST
    • customerTree
      POST
  • device
    • command
      • commandSend
        POST
      • commandInfoList
        POST
      • cutOilElectric
        POST
      • getConfig
        POST
    • devicePage
      POST
    • deviceTypes
      POST
    • deviceTypeInfo
      POST
    • deviceDataByDeviceIds
      POST
    • deviceDataByCustomerId
      POST
    • deviceTripInfoByTripId
      POST
    • deviceTripsByDeviceId
      POST
    • syncChannelMosaic
      POST
    • deviceList
      POST
    • saveChannelMosaic
      POST
    • deviceTraffic
      POST
    • deviceTrafficDetail
      POST
    • deviceSensorData
      POST
    • expandInfoByDeviceId
      POST
    • saveDeviceChannelName
      POST
    • Device Awaken Command
      POST
    • deviceDltData
      POST
  • fence
    • device
      • Add or update fences
      • Update the fence configuration file
      • Remove the fence
      • Re issue task command
      • Cancel upload task
      • Get the tasks
    • fencePage
    • fenceInfo
    • addFence
    • saveFence
    • delFence
    • fenceDevices
    • fenceDeviceUpdate
    • fenceDeviceDel
    • fenceDeviceAdd
  • push&Webhook
    • README
  • video
    • history
      • README
      • H5 Page
      • custom upload
        • customHistoricalUploadStop
        • customHistoricalUpload
      • playBackList
      • historicalUpload
      • playBack
      • replaySet
      • taskPage
      • taskStop
      • taskDelete
    • live
      • README
      • H5 Page-V2[Recommend]
      • H5 page
      • liveVideo
      • liveVideoControl
    • task
      • Creates a historical video scheduled task.
      • Deletes a historical video scheduled task.
      • Queries historical video scheduled tasks by page.
      • Queries a historical video scheduled task by ID.
    • getNodes
  • alarm
    • Alert Types
    • alarmTypeList
    • alarmFilePage
    • alarmFileByAlarmId
    • alarmHistoryPage
    • alarmPageByUser
    • alarmFileRecordReUpload
  • audio
    • README
    • talk「Deprecated」
    • talkPlus
  • gallery
    • filePageV2
    • filePage
    • deleteFile
    • capture
    • capturePage
    • captureRecord
  • fleet
    • Passenger Total Report
    • Device Face Save
    • Face Record Query
    • Device Face Delete
    • RFID Record Query
    • Device Face Query
    • Paginated query for driver face scheduled task.
    • Get driver face scheduled task information.
    • Delete driver face scheduled task by task ID.
  • gps
    • historyData
  • dev
    • playBackM3u8
  • Protocol Analysis
    POST
  1. command

getConfig

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/device/command/getConfig
Get device configuration parameters (basic parameters/network/audio and video/ADAS/DMS)

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Header Params

Body Params application/json

Example
{
    "deviceId": "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 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/command/getConfig' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "deviceId": "string"
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "code": 0,
    "data": {
        "basicDetail": {
            "heartbeatInterval": "",
            "sleepInterval": "",
            "emergencyInterval": "",
            "defaultTimeInterval": "",
            "maxSpeed": "",
            "overspeedDuration": "",
            "continuousDrivingTimeThreshold": "",
            "todayDrivingTimeThreshold": "",
            "minimumRestTime": "",
            "maximumParkingTime": "",
            "collisionTime": "",
            "collisionAcceleration": "",
            "rolloverAlarmSettings": "",
            "graphicVideoQuality": "",
            "brightness": "",
            "contrast": "",
            "saturation": "",
            "chroma": "",
            "vehicleOdometerReading": "",
            "gnssLocationMode": "",
            "gnssBaudRate": "",
            "gnssOutputFrequency": "",
            "gnssGatherFrequency": "",
            "alarmShootingSwitch": "",
            "alarmStorageIdentification": "",
            "keyFlag": ""
        },
        "network": {
            "mainServerAPN": "",
            "mainServerUsername": "",
            "mainServerPassword": "",
            "mainServerAddress": "",
            "backupServerAddress": "",
            "serverTCPPort": ""
        },
        "video": {
            "channel1Switch": false,
            "channel2Switch": false,
            "channel3Switch": false,
            "channel4Switch": false,
            "channel5switch": false,
            "channel1StorageFlag": false,
            "channel2StorageFlag": false,
            "channel3StorageFlag": false,
            "channel4StorageFlag": false,
            "channel5StorageFlag": false,
            "timingUnit": 0,
            "timingInterval": 0,
            "liveStreamMode": 0,
            "streamResolution": 0,
            "streamInterval": 0,
            "streamFrameRate": 0,
            "streamBitRate": 0,
            "storageStreamMode": 0,
            "storageResolution": 0,
            "storageInterval": 0,
            "storageFrameRate": 0,
            "storageBitRate": 0,
            "osdSubtitleSetting": 0,
            "enableAudioOutput": 0,
            "audioVideoTotal": 0,
            "audioTotal": 0,
            "videoTotal": 0
        },
        "advancedDriverAssistanceSystem": {
            "alarmSpeed": 0,
            "alarmVolume": 0,
            "activePhotoStrategy": 0,
            "timingPhotoInterval": 0,
            "distancePhotoInterval": 0,
            "activePhotoNumber": 0,
            "activePhotoInterval": 0,
            "photoResolution": 0,
            "videoResolution": 0,
            "alarmEnable": 0,
            "eventEnable": 0,
            "reserved": 0,
            "obsDistance": 0,
            "obsSpeed": 0,
            "obsVideoTime": 0,
            "obsPhotoNumber": 0,
            "obsPhotoInterval": 0,
            "fclTimeFrame": 0,
            "fclJudgmentNumber": 0,
            "fclSpeed": 0,
            "fclVideoTime": 0,
            "fclPhotoNumber": 0,
            "fclPhotoInterval": 0,
            "ldwSpeed": 0,
            "ldwVideoTime": 0,
            "ldwPhotoNumber": 0,
            "ldwPhotoInterval": 0,
            "fcwTime": 0,
            "fcwSpeed": 0,
            "fcwAlarmVideoTime": 0,
            "fcwAlarmPhotoNumber": 0,
            "fcwPhotoInterval": 0,
            "pcwTime": 0,
            "pcwSpeed": 0,
            "pcwVideoTime": 0,
            "pcwPhotoNumber": 0,
            "pcwPhotoInterval": 0,
            "dvwDistance": 0,
            "dvwSpeed": 0,
            "dvwVideoTime": 0,
            "dvwPhotoNumber": 0,
            "dvwPhotoInterval": 0,
            "tsrPhotoNumber": 0,
            "tsrPhotoInterval": 0,
            "reserved1": 0
        },
        "driverStatusMonitoringSystem": {
            "alarmSpeed": 0,
            "alarmVolume": 0,
            "activePhotoStrategy": 0,
            "activeTimingPhotoInterval": 0,
            "activeDistancePhotoInterval": 0,
            "singleActivePhotoNumber": 0,
            "singleActivePhotoInterval": 0,
            "photoResolution": 0,
            "videoRecordingResolution": 0,
            "alarmEnable": 0,
            "eventEnable": 0,
            "smokingAlarmInterval": 0,
            "callAlarmInterval": 0,
            "reserved": "",
            "bawsSpeed": 0,
            "bawsVideoTime": 0,
            "bawsPhotoNumber": 0,
            "bawsPhotoInterval": 0,
            "callSpeed": 0,
            "callVideoTime": 0,
            "callPhotoNumber": 0,
            "callPhotoInterval": 0,
            "smokingSpeed": 0,
            "smokingVideoTime": 0,
            "smokingPhotoNumber": 0,
            "smokingPhotoInterval": 0,
            "ddpSpeed": 0,
            "ddpVideoTime": 0,
            "ddpPhotoNumber": 0,
            "ddpPhotoInterval": 0,
            "dabSpeed": 0,
            "dabVideoTime": 0,
            "dabPhotoNumber": 0,
            "adabPhotoInterval": 0,
            "driverIdentificationTrigger": 0,
            "reservedField": 0
        },
        "blindSpotMonitoringSystem": {
            "rearIsApproachingTheAlarmTime": "",
            "sideIsApproachingTheAlarmTime": ""
        }
    },
    "msg": ""
}
Modified at 2025-09-12 09:50:32
Previous
cutOilElectric
Next
devicePage
Built with