FleetUp API Docs
  1. Geofence
FleetUp API Docs
  • Quick Start
    • Your First API Call
    • Token Expiration
    • Rate Limit
    • Error Codes
  • API Reference
    • Introduction
    • Authentication
      • /token
      • Obtain JWT Token
    • Account & User & Device
      • /account-info
      • /users
      • /drivers/list
      • /devices
      • /devices/status
      • /devices/unlock
      • /devices/driver-overview
      • /devices/engine-hours
      • /devices/fuel-level
      • /devices/odometer
      • /devices/latest-ecu-data
      • /devices/{device-id}
      • /devices/{device-type}
      • /devices/{device-type}/details
      • /devices/{device-type}/history
    • Trips
      • /trips/history
      • /trips/ongoing-trips
    • Trip Share
      • /tripshare/live-eta
      • /tripshare/partners
      • /tripshare/share
    • Alerts
      • /alerts/summary
      • /alerts/history
      • /alerts/bulk-history
      • /fencealerts/fence-names
      • /fencealerts/geo-fencealerts
    • Location
      • Retrieve GPS data within a 24-hour time range
      • /gpsdata/device-last-location
      • /gpsdata/latest
      • /gpsdata/latest/4cj
      • /gpsdata/latest/5ta
      • /bulk-gpsdata
    • Maintenance
      • /maintenance/history
      • /maintenance/indicators
      • /maintenance/settings/indicators
      • /maintenance/settings/measurements
    • Reports
      • /reports/temperature-sensors
      • /reports/{report-key}
    • Geofence
      • Get all fences
        GET
      • Get fence detail
        GET
      • Retrieve geofence alerts
        GET
    • Others
      • /jobs
  • API Guides
    • Retrieve All Devices from an Enterprise
  1. Geofence

Get all fences

GET
/geofence/fences
This API provides a complete list of geofences along with their IDs.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************

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 GET '/geofence/fences' \
--header 'x-api-key;'

Responses

🟢200成功
application/json
200 response
Body
array of:
fenceId
number 
required
Fence ID
Example:
12345
fenceName
string 
required
Fence Name
Example:
A Test Fence
Example
[
    {
        "fenceId": "12345",
        "fenceName": "A Test Fence"
    }
]
Modified at 2025-02-28 08:12:14
Previous
/reports/{report-key}
Next
Get fence detail
Built with