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
  • Schemas
    • Schemas
      • DevicesHistoryRequest
      • Devices List Request
      • Geofence Name Response
      • Alerts Bulk History Request
      • Alerts History Request
      • Device List Response
      • Historic Gps Response
      • Device Odometer Response
      • DevicesDetailsRequest
      • DevicesUpdateRequest
      • Get Users Response
      • Ongoing Trips Response
      • Job Creation Response
      • Alerts Summary Response
      • Token Response
      • JWT Token Response
      • Trip History Request
      • DevId with date range Request
      • Device Latest Ecu Data Response
      • Device Data
      • Geofence Alerts Request
      • Latest Gps Request
      • Maintenance History Response
      • Device Status Response
      • Geofence Name Request
      • Historic Gps Request
      • DevId Request
      • Ongoing Trips Request
      • Alerts History Response
      • Account Info Request
      • Device Fuel Level Response
      • Empty Schema
      • Latest 5ta Gps Request
      • DevicesResponse
      • Device List Response
      • Devices Last Location Request
      • Trip History Response
      • DevicesHistoryResponse
      • Geofence Alerts Response
      • Error Schema
      • Device Last Location Response
      • Bulk Historic Gps Request
      • Account Information Response
      • Device Engine Hours Response
      • Devices Status Request
      • Devices Driver Overview Request
      • DevicesDetailsResponse
      • Maintenance Indicators Config Response
      • Latest Gps Response
      • Devices Unlock Request
      • Maintenance Indicators Config Response
      • Drivers List Response
      • Maintenance Indicators Response
      • Job creation request
      • Trip Share Devices Response
      • Live ETA OK Schema
      • TripShare OK Schema
      • TripShare Error Schema
      • Error Schema
      • Temperature Sensor Data Response
      • Geofence List Response
      • Geofence Detail Response
      • Geofence Alert Pagination Response
  1. Geofence

Retrieve geofence alerts

GET
/geofence/alerts
This API fetches geofence alerts for a specific device and geofence within the provided start and end time. If no device ID is entered, alerts for all devices under the account will be included, and if no fence ID is entered, alerts for all geofences will be considered.

Request

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

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

Responses

🟢200成功
application/json
200 response
Body

Example
{
    "total": 1,
    "pageSize": 200,
    "pageNo": 1,
    "rows": [
        {
            "deviceId": "7200000087",
            "alertAction": 1,
            "tmTime": "20250208014810",
            "acconTime": "20250208014120",
            "fenceId": 12345,
            "fenceName": "A Test Fence"
        }
    ],
    "totalPage": 1,
    "nextPage": 1,
    "lastPage": true,
    "firstPage": true,
    "prePage": 1
}
Modified at 2025-02-28 08:12:14
Previous
Get fence detail
Next
/jobs
Built with