List Vehicles
Retrieves a list of vehicles registered on the platform, with optional filtering by driverId to fetch vehicles assigned to a specific driver.
Endpoint Overview
-
Method:
GET -
Route:
/api/v1/vehicles -
Authentication:
None (Public) -
Content-Type:
N/A
Query Parameters
Example Request URLs
-
GET {{baseUrl}}/api/v1/vehicles
-
GET {{baseUrl}}/api/v1/vehicles?driverId=drv_8a7b6c5d4e
Request Body Schema
None (GET request)
Response Body Schema (200 OK)
Vehicle Item Fields
Response Examples
1. `200 OK` — Vehicles Returned
2. `200 OK` — No Vehicles Found
3. `500 Internal Server Error`
Status Codes Reference
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.