Driver List
List all Drivers
GET
https://api.fairmatic.com/api/v1/drivers?limit=30&page=2
This API endpoint retrieves a paginated list of drivers irrespective of driver status within a fleet.
info
Notes:
- All dates provided here are as per UTC timezone.
- All fields other than driver id can contain null.
Headers
Name | Value |
---|---|
Content-Type | application/json |
Authorization | APIKEY <token> |
Parameters
Name | Type | Description |
---|---|---|
limit | Integer | Records per page (max 100) |
page | Integer | Page number |
Response
The list of drivers is returned with pagination details:
- 200
{
"count": 50,
"limit": 50,
"current_page": 1,
"next_page": null,
"drivers": [
{
"driver_id": "33d3a4ed7b8046239c22a35942a08e6f",
"first_name": "John",
"last_name": "Doe",
"email": null,
"alias": "John Doe",
"first_travel_date": "2024-05-23",
"last_travel_date": "2024-05-23"
},
{
"driver_id": "b527f36ef860aad3616296a1e62fceef",
"first_name": null,
"last_name": null,
"email": null,
"alias": null,
"first_travel_date": null,
"last_travel_date": null
},
driver 3 ....
driver 4 ....
...
]
}