List Vehicles
List Vehicles
Retrieve all vehicles with filtering and pagination support
GET
List Vehicles
List Vehicles
Retrieve a paginated list of vehicles in your organization with support for filtering, searching, and sorting.Performance Optimized: This endpoint uses correlated subqueries for efficient CO2e calculation, computing emissions only for the paginated result set rather than all vehicles.
Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
boolean
default:"false"
Include vehicles from child organizationsExample:
truestring
Search vehicles by name or license plate (partial match)Example:
"Company Fleet"array[string]
Filter by vehicle statusAvailable values:
active, archived, errorExample: status[]=active&status[]=archivedarray[string]
Filter by ownership typeAvailable values:
owned, rentedExample: ownership[]=ownedarray[uuid]
Filter by unknown vehicle type UUIDExample:
unknown_vehicle_id[]=550e8400-e29b-41d4-a716-446655440000array[uuid]
Filter by fuel type UUIDExample:
vehicle_fuel_id[]=660e8400-e29b-41d4-a716-446655440000array[uuid]
Filter by source file UUID. Pass
00000000-0000-0000-0000-000000000000 to filter for vehicles with no associated file.Example: file_id[]=3fa85f64-5717-4562-b3fc-2c963f66afa6datetime
Filter vehicles created on or after this timestamp (inclusive)Format:
YYYY-MM-DDTHH:MM:SSZdatetime
Filter vehicles created on or before this timestamp (inclusive)Format:
YYYY-MM-DDTHH:MM:SSZinteger
Filter by reporting period start year (inclusive)Example:
2024integer
Filter by reporting period end year (inclusive)Example:
2024array[string]
Sort results (prefix with
- for descending)Available values: name, license_plate, created_at, updated_at, -name, -license_plate, -created_at, -updated_atExample: sort=name&sort=-created_atinteger
default:"1"
Page number for paginationExample:
2integer
default:"50"
Number of items per page (max 100)Example:
50Response
array[object]
Array of vehicle objects
integer
Total number of vehicles matching the filter
integer
Current page number
integer
Number of items per page
string
16-character hex hash of the applied filters. Pass this to the bulk delete by filters endpoint to ensure consistency.
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key404 Not Found
Cause: Organization not foundx-organization-id header contains a valid organization UUID.
422 Validation Error
Cause: Invalid query parametersUse Cases
Get All Active Vehicles
Retrieve only active vehicles for current fleet monitoring:Search and Filter by Criteria
Find specific vehicles and get their emissions:Export Fleet Data
Export vehicle data for reporting:Pagination Guide
Navigate through large vehicle lists efficiently:Related Endpoints
Create Vehicle
Add a new vehicle to your fleet
Update Vehicle
Modify vehicle details
Delete Vehicle
Remove a vehicle from your fleet
Vehicle Consumptions
Retrieve consumption data for a specific vehicle