Skip to main content
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_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Query Parameters

boolean
default:"false"
Include vehicles from child organizationsExample: true
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[]=archived
array[string]
Filter by ownership typeAvailable values: owned, rentedExample: ownership[]=owned
array[uuid]
Filter by unknown vehicle type UUIDExample: unknown_vehicle_id[]=550e8400-e29b-41d4-a716-446655440000
array[uuid]
Filter by fuel type UUIDExample: vehicle_fuel_id[]=660e8400-e29b-41d4-a716-446655440000
array[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-2c963f66afa6
datetime
Filter vehicles created on or after this timestamp (inclusive)Format: YYYY-MM-DDTHH:MM:SSZ
datetime
Filter vehicles created on or before this timestamp (inclusive)Format: YYYY-MM-DDTHH:MM:SSZ
integer
Filter by reporting period start year (inclusive)Example: 2024
integer
Filter by reporting period end year (inclusive)Example: 2024
array[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_at
integer
default:"1"
Page number for paginationExample: 2
integer
default:"50"
Number of items per page (max 100)Example: 50

Response

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 key
Solution: Verify your API key is valid and active. Get a new one from Settings → API.

404 Not Found

Cause: Organization not found
Solution: Verify that the x-organization-id header contains a valid organization UUID.

422 Validation Error

Cause: Invalid query parameters
Solution: Check that page size is between 1 and 100, and that filter values are valid enums.

Use 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:

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