v1
latestOpenAPI 3.1.02026-07-2617501.1 MBList of drivers with available time
get/v1/available_time
Query parameters
driver_ids[]integer[]
Specify 1 or more driver IDs to fetch their corresponding available time.
per_pageinteger
Number of records per page.
page_nointeger
Current page number.
Headers
X-Time-Zonestring
Specify the timezone for formatting the timestamps.
X-Metric-Unitsboolean
Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units
X-User-Idinteger
Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.
Response
200
Example response
{
"users": [
{
"user": {
"duty_status": "on_duty",
"id": 11,
"first_name": "2",
"last_name": "Fo2",
"email": "5706204b3c84@keeptruckin.com",
"status": "active",
"role": "driver",
"available_time": {
"cycle": 214800,
"shift": 49200,
"drive": 39600,
"break": 27600
},
"recap": {
"on_duty_duration": [
{
"date": "2016-02-15",
"duration": 1200
}
],
"driving_duration": [
{
"date": "2016-02-09"
}
],
"seconds_available": 216000,
"seconds_tomorrow": 214800
},
"last_hos_status": {
"status": "on_duty",
"time": "2016-02-15T13:40:00Z"
},
"last_cycle_reset": {
"type": "34_hour",
"start_time": "2020-03-27T23:59:32Z",
"end_time": "2020-03-29T09:59:32Z"
}
}
}
],
"pagination": {
"per_page": 25,
"page_no": 1,
"total": 2
}
}