v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

List all the asset Geofence events

get/v1/geofences/asset_events

Query parameters

start_datestring date

Specify the date from when you want to view the Geofence events. Default: TODAY - 7 DAYS AGO

end_datestring date

Specify the end time till when you want to view the Geofence events. Default: TODAY

geofence_ids[]integer[]

Specify a list of the Geofence IDs to view their events.

asset_ids[]integer[]

Specify a group of asset IDs to view the corresponding Geofence events.

updated_afterstring date

Specify the events that you want to view that were updated after a certain date.

per_pageinteger

Denotes the number of records per page.

page_nointeger

The current page number.

Response

200

Example response

{
  "geofence_events": [
    {
      "geofence_event": {
        "id": 13,
        "geofence_id": 1,
        "start_time": "2021-08-23T22:31:02Z",
        "end_time": "2021-08-23T22:31:18Z",
        "duration": 16,
        "asset": {
          "id": 197,
          "name": "testasset1",
          "status": "active",
          "type": "curtain_side",
          "make": "John Deere",
          "model": "uwu",
          "year": "2017",
          "asset_gateway": {
            "id": 20,
            "identifier": "AT0-V9P-DD3",
            "active": true
          }
        }
      }
    }
  ],
  "pagination": {
    "per_page": 25,
    "page_no": 1,
    "total": 5
  }
}