List Vehicles
List Vehicles
Get a paginated list of vehicles in your organization’s fleet
GET
List Vehicles
List Vehicles
Retrieve all vehicles registered in your organization’s fleet with pagination support and flexible filtering options.This endpoint returns both known vehicles (from our database with specific make/model) and unknown vehicles (custom vehicles defined by the user).
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
ff4adcc7-8172-45fe-9cf1-e90a6de53aa9Your user UUIDExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890Query Parameters
Page number for paginationExample:
1Number of items per page (max: 100)Example:
50Advanced filtering criteria (format:
field:value)Example: "country:ES", "type:passenger", "ownership:owned"Sort criteria (format:
field:asc or field:desc)Example: "name:asc", "created_at:desc", "license_plate:asc"Filter by creation date start (Unix timestamp)Example:
1704067200 (January 1, 2024)Filter by creation date end (Unix timestamp)Example:
1735689600 (January 1, 2025)Response
Current page number
Number of items per page
Total count of active vehicles
Total count of archived vehicles
Array of vehicle objects
Vehicle Object Fields:
id(string, UUID) - Unique vehicle identifiername(string, optional) - Vehicle name or descriptionlicense_plate(string, optional) - Vehicle license plate numbertype(string) - Vehicle usage type:"passenger"or"freight"ownership(string) - Vehicle ownership:"owned"or"rented"country(string) - ISO 3166-1 alpha-2 country codeis_known(boolean) - Whether vehicle is from known database or customknown_vehicle_id(string, UUID, optional) - ID if vehicle from databaseunknown_vehicle_id(string, UUID, optional) - ID if custom vehiclevehicle_fuel_id(string, UUID, optional) - Associated fuel type IDvehicle_fuel(string, optional) - Fuel type name (e.g., “Diesel”, “Electric”)registration_year(integer, optional) - Year vehicle was first registeredmarket_segment(string, optional) - Vehicle market segmentsize(string, optional) - Vehicle size classificationco2e(float) - Total CO2 equivalent emissions in kgconsumptions(integer, optional) - Number of fuel consumption recordsstatus(string) -"active","archived", or"error"error_messages(array of strings, optional) - Error messages if status is errorcreated_at(datetime) - Creation timestampknown_vehicle(object, optional) - Details if known vehicleid(string) - Known vehicle database IDbrand(string) - Vehicle manufacturermodel(string) - Vehicle modelcountry(string) - Country codevehicle_motor_type(string) - Motor typegearbox_type(string) - Transmission typecylinder_capacity(integer) - Engine size in ccvehicle_power(integer) - Engine power in kW
unknown_vehicle(object, optional) - Details if custom vehicleid(string) - Custom vehicle IDtype(string) - Vehicle typecountry(string) - Country code
custom_emission_factor_id(string, UUID, optional) - Custom emission factor if specified
Example
Successful Response
Common Errors
400 Bad Request
Cause: Invalid query parameters or date format403 Forbidden
Cause: Organization ID doesn’t match your API key or user doesn’t belong to organizationx-organization-id matches your API key’s organization.
Use Cases
Fleet Dashboard
Display your complete fleet with emissions breakdown:Filter by Vehicle Type
Get all passenger or freight vehicles:Filter by Ownership
Get owned vs rented vehicles:Date Range Query
Get vehicles added within a specific time period:Pagination
When you have many vehicles, use pagination to retrieve all results:Special Notes
Known vs Unknown Vehicles
Dcycle maintains a database of known vehicles with specific make, model, and technical specifications. You can:- Use known vehicles: Select from database with accurate emission factors based on manufacturer data
- Create unknown vehicles: Define custom vehicles when your specific model isn’t in our database
is_known: true, the known_vehicle object contains detailed specifications. When is_known: false, the unknown_vehicle object contains basic type information.
Vehicle Types
Vehicles are classified by usage:- passenger: Personal vehicles, company cars, executive vehicles
- freight: Delivery vans, trucks, commercial vehicles
Ownership Status
Track vehicle ownership for better fleet management:- owned: Vehicles owned by your organization
- rented: Leased or rented vehicles
Market Segments
For passenger vehicles, market segments help classify vehicle size and emissions:mini- City cars (e.g., Smart ForTwo)supermini- Small cars (e.g., Ford Fiesta)lower_medium- Compact cars (e.g., VW Golf)upper_medium- Mid-size cars (e.g., BMW 3 Series)executive- Large cars (e.g., BMW 5 Series)luxury- Premium cars (e.g., Mercedes S-Class)sports- Sports carsdual_purpose_4x4- SUVs and 4x4 vehiclesmpv- Multi-purpose vehicles (minivans)
CO2e Field
Theco2e field represents the total carbon footprint of the vehicle calculated from all fuel consumption records. A value of 0.0 means either:
- No consumption records have been registered yet
- All consumptions have zero emissions
- Calculations are pending
Vehicle Status
Vehicles can have three statuses:- active: Vehicle is currently in use
- archived: Vehicle removed from fleet but data retained for historical reporting
- error: Vehicle has validation or processing errors (check
error_messagesfield)
Related Endpoints
Bulk Upload Vehicles
Upload multiple vehicles via CSV
List Facilities
View your facilities
Create Invoice
Add fuel consumption data
Authentication
Learn about API authentication

