1. fence
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
    • 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
      POST
    • fenceInfo
      POST
    • addFence
      POST
    • saveFence
      POST
    • delFence
      POST
    • fenceDevices
      POST
    • fenceDeviceUpdate
      POST
    • fenceDeviceDel
      POST
    • fenceDeviceAdd
      POST
  • 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. fence

fenceInfo

Singapore
https://mettahub.mettaxiot.com/gps
Singapore
https://mettahub.mettaxiot.com/gps
POST
/v2/openapi/fence/info

Request

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

Body Params application/json

Example
{
    "fenceId": "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/fence/info' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "fenceId": "string"
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "code": 0,
    "data": {
        "id": "string",
        "fenceName": "string",
        "customerId": "string",
        "remark": "string",
        "fenceType": 0,
        "fenceRange": "string"
    },
    "msg": "string"
}
Modified at 2026-10-19 06:01:39
Previous
fencePage
Next
addFence
Built with