v1
latestOpenAPI 3.1.02026-07-2617501.1 MBList the Geofence events
get/v1/geofences/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.
driver_ids[]integer[]
Specify a group of driver IDs to view the corresponding Geofence events.
vehicle_ids[]integer[]
Specify a list of the vehicle IDs for which you want to view the Geofence events.
updated_afterstring date
Specify the events that you want to view that were updated after a certain date.
per_pageinteger
The number of records to be displayed per page.
page_nointeger
Denotes the current page number.
Response
200
Example response
{
"geofence_events": [
{
"geofence_event": {
"id": 159,
"geofence_id": 1049,
"start_time": "2019-11-05T20:12:36Z",
"end_time": "2019-11-06T20:12:36Z",
"duration": 86400,
"vehicle": {
"id": 1211,
"number": "V-1000",
"year": "2019",
"make": "Vehicle",
"model": "Demo",
"vin": "WP0AB2966NS458669"
},
"start_driver": {
"id": 4897,
"first_name": "Guiseppe",
"last_name": "Beatty",
"email": "2781ca4915aa@keeptruckin.com",
"status": "active",
"role": "driver"
},
"end_driver": {
"id": 4897,
"first_name": "Guiseppe",
"last_name": "Beatty",
"email": "2781ca4915aa@keeptruckin.com",
"status": "active",
"role": "driver"
}
}
}
],
"pagination": {
"per_page": 25,
"page_no": 1,
"total": 3
}
}