Authentication
This API uses token-based authentication. Include your token in the request header:
Authorization: Bearer <your_token_here>
Endpoints
GET /login
Validates user credentials and returns a token for secure access to protected endpoints. This token must be included in the Authorization
header of future requests.
Auth Required: Basic Auth (username & password)
GET /fleet
Returns current fleet details, including VIN, vehicle details, location, assigned driver, and odometer readings.
Auth Required: Bearer Token
GET /orders
Returns vehicle order details, including order status, delivery location, and vehicle type.
Auth Required: Bearer Token
GET /rentals
Returns a history of active, pending, or completed rentals, including duration, vehicle usage, and rental details.
Auth Required: Bearer Token
GET /location
Retrieves the real-time GPS location of vehicles, including coordinates, address, and GPS signal status.
Auth Required: Bearer Token
GET /alerts
Returns vehicle alerts generated from telematics, including maintenance notices, recall information, and driving behavior events.
Auth Required: Bearer Token