Get Tank Readings
Retrieve historical readings for a tank from Last Mile Intelligence.
Operation
Section titled “Operation”getTankReadings
Resource
Section titled “Resource”tank
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Tank ID | string | Yes | - | The ID of the tank to get readings for |
Response
Section titled “Response”Success
Section titled “Success”{ "tankId": "tank_abc123", "readings": [ { "id": "read_001", "level": 4500, "percentage": 45, "readingType": "automatic", "timestamp": "2024-06-20T08:00:00Z" }, { "id": "read_002", "level": 4200, "percentage": 42, "readingType": "automatic", "timestamp": "2024-06-19T08:00:00Z" } ]}{ "success": false, "error": "Tank not found", "tankId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Tank Not Found: Tank with specified ID does not exist
- No Readings: Tank has no recorded readings
- Permission Denied: API token lacks permission for this operation