Skip to content

Get Locations

Retrieve all locations from Last Mile Intelligence.

getLocation

location

ParameterTypeRequiredDefaultDescription
Location IDstringNo-Leave empty to retrieve all locations
[
{
"id": "loc_abc123",
"name": "Main Warehouse",
"type": "warehouse",
"city": "Chicago",
"isActive": true
},
{
"id": "loc_def456",
"name": "North Terminal",
"type": "terminal",
"city": "Milwaukee",
"isActive": true
}
]
{
"success": false,
"error": "Failed to retrieve locations"
}
  • Missing API Token: LMI credential is missing API token
  • Permission Denied: API token lacks permission for this operation