Get Location
Retrieve a single location by its ID 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 | Yes | - | The ID of the location to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "loc_abc123", "name": "Main Warehouse", "type": "warehouse", "address": { "street": "100 Industrial Pkwy", "city": "Chicago", "state": "IL", "zip": "60601" }, "coordinates": { "latitude": 41.8781, "longitude": -87.6298 }, "isActive": true}{ "success": false, "error": "Location not found", "locationId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Location Not Found: Location with specified ID does not exist
- Permission Denied: API token lacks permission for this operation