Get Vehicles
Retrieve all vehicles from Last Mile Intelligence.
Operation
Section titled “Operation”getVehicle
Resource
Section titled “Resource”vehicle
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Vehicle ID | string | No | - | Leave empty to retrieve all vehicles |
Response
Section titled “Response”Success
Section titled “Success”[ { "id": "veh_truck001", "name": "Truck 001", "licensePlate": "ABC-1234", "status": "available", "isActive": true }, { "id": "veh_truck002", "name": "Truck 002", "licensePlate": "XYZ-5678", "status": "in_use", "isActive": true }]{ "success": false, "error": "Failed to retrieve vehicles"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Permission Denied: API token lacks permission for this operation