Skip to content

Get Tank Readings

Retrieve historical readings for a tank from Last Mile Intelligence.

getTankReadings

tank

ParameterTypeRequiredDefaultDescription
Tank IDstringYes-The ID of the tank to get readings for
{
"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"
}
  • 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