Get Drivers
Retrieve all driver and contact records from FleetIO with automatic pagination.
Operation
Section titled “Operation”getDrivers
Resource
Section titled “Resource”driver
Parameters
Section titled “Parameters”This operation has no required parameters.
Options
Section titled “Options”| Option | Type | Default | Description |
|---|---|---|---|
| Include Debug Info | boolean | false | Whether to include metadata about the API request |
Response
Section titled “Response”Success
Section titled “Success”Returns an array of driver/contact records:
{ "id": 12345, "first_name": "John", "last_name": "Smith", "email": "john.smith@example.com", "phone": "+1-555-123-4567", "employee_number": "EMP001", "license_number": "D1234567", "license_class": "CDL-A", "license_state": "TX", "license_expiration_date": "2025-06-15", "group_id": 5, "group_name": "North Fleet", "default_vehicle_id": 789, "active": true}{ "success": false, "error": "FleetIO credential is missing apiKey"}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
| id | number | Unique contact ID |
| first_name | string | First name |
| last_name | string | Last name |
| string | Email address | |
| phone | string | Phone number |
| employee_number | string | Employee ID |
| license_number | string | Driver license number |
| license_class | string | License class (e.g., CDL-A) |
| license_state | string | License issuing state |
| license_expiration_date | string | License expiration date |
| group_id | number | Fleet group ID |
| group_name | string | Fleet group name |
| default_vehicle_id | number | Default assigned vehicle ID |
| active | boolean | Whether the contact is active |
Error Handling
Section titled “Error Handling”- Missing API URL: FleetIO credential is missing apiUrl
- Missing Account Token: FleetIO credential is missing accountToken
- Missing API Key: FleetIO credential is missing apiKey
- Rate Limiting: API rate limit exceeded