Saltar al contenido principal

List all tanks

GET /v1/tanks

Returns a list of your tanks. The tanks are returned sorted by creation date, with the most recent tanks appearing first.

Request

curl -X GET "https://public.api.levixgas.com/v1/tanks" \
-H "X-API-Key: YYBXbxc.T_x2psVizfd1M3XPIKHEeYYpZkMoH4uJ5LXlicSsV8Y" \
-d size=100

Parameters

No parameters.

More parameters

created_at_gte string optional

ISO for datetime representing the minimum value to filter by (inclusive)


created_at_lte string optional

ISO for datetime representing the maximum value to filter by (inclusive)


page integer optional

Specifies which page of result to retrieve. The default is 1.


size integer optional

This specifies a limit on the number of objects to return, ranging between 1 and 100, and the default is 10.

Returns

A dictionary with a data property that contains an array of up to size tanks.

Each entry in the array is a separate tank object. If no more tanks are available, the resulting array will be empty.

Response

{
"object":"list",
"data":[
{
"id":"849f32cc-e891-4279-ac41-37fe5b2cce50",
"object":"tank",
"assigned_device_id":"ABCD1234",
"capacity":100,
"capacity_unit":"liters",
"created_at":"2025-08-13T16:38:55.453Z",
"custom_id":null,
"location":{
"city":null,
"country":null,
"district":null,
"latitude":null,
"longitude":null,
"postal_code":null,
"region":null,
"street":null,
"street_number":null
},
"min_fill_alert_percentage":30,
"name":"My tank",
"owner_id":"16ccb4b5-2f9d-43c4-aa97-faebe4800904",
"updated_at":"2025-08-13T16:38:55.453Z",
"use_case":null
}
],
"page":1,
"size":10,
"total_pages":100,
"total_items":1000
}