Get Service Area
Retrieve a single service area by its ID from Last Mile Intelligence.
Operation
Section titled “Operation”getServiceArea
Resource
Section titled “Resource”serviceArea
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Service Area ID | string | Yes | - | The ID of the service area to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "sa_chicago", "name": "Chicago Metro", "description": "Greater Chicago metropolitan area", "terminalId": "term_chicago", "polygon": { "type": "Polygon", "coordinates": [[[-87.9, 41.6], [-87.5, 41.6], [-87.5, 42.1], [-87.9, 42.1], [-87.9, 41.6]]] }, "isActive": true}{ "success": false, "error": "Service area not found", "serviceAreaId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Service Area Not Found: Area with specified ID does not exist
- Permission Denied: API token lacks permission for this operation