Skip to content

Get Vehicle

Retrieve a single vehicle by its ID from Last Mile Intelligence.

getVehicle

vehicle

ParameterTypeRequiredDefaultDescription
Vehicle IDstringYes-The ID of the vehicle to retrieve
{
"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"
}
  • 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