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}