Get Locations
Retrieve all locations from Last Mile Intelligence.
Operation
Section titled “Operation”getLocation
Resource
Section titled “Resource”location
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Location ID | string | No | - | Leave empty to retrieve all locations |
Response
Section titled “Response”Success
Section titled “Success”[ { "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"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Permission Denied: API token lacks permission for this operation