Skip to main content

Get the company's complete vehicle fleet

GET 

/company/vehicles/

This endpoint returns all vehicles registered in the company's fleet. It requires JWT authentication.

Use Cases:

  • View the complete list of available vehicles
  • Filter vehicles by type, brand, or model (implemented client-side)
  • Obtain information for reports or dashboards

Example of a successful response:

{
fleet: [
{
id: veh_123456789,
license_plate: ABC1234,
type: type_987654321,
brand: Volvo,
model: FH16,
year: 2022,
images: [https://storage.example.com/vehicles/abc123.jpg],
created_at: 2023-01-15T10:30:00Z,
updated_at: 2023-01-15T10:30:00Z
}
],
count: 1
}

Responses

Vehicle list successfully obtained.