Get Vehicle
Retrieve a single vehicle by its ID 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 | Yes | - | The ID of the vehicle to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "veh_truck001", "name": "Truck 001", "vin": "1HGBH41JXMN109186", "licensePlate": "ABC-1234", "make": "Freightliner", "model": "M2 106", "year": "2022", "capacity": 5000, "capacityUnit": "gallon", "terminalId": "term_chicago", "status": "available", "isActive": true}{ "success": false, "error": "Vehicle not found", "vehicleId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Vehicle Not Found: Vehicle with specified ID does not exist
- Permission Denied: API token lacks permission for this operation