Listar activos da rede
RegistosGET /assets
Returns the tenant's water network assets with cursor pagination (limit defaults to 20, at most 100). Filter by asset_type, status or service_area_id, and use q to match a substring of the asset name or code. Requires network:read.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Devolve
200 Network assets
Mostrar atributos
dataMostrar atributos filhos
idtenant_idcodenameasset_typeum de
source,treatment_plant,reservoir,pump_station,pipe,valve,hydrant,dma,junction,customer_tapservice_area_idstatusum de
operational,maintenance,offline,decommissionedcapacitylatitudelongitudeelevationinstallation_datepropertiesnode_typeum de
source_river,source_borehole,treatment_plant,reservoir,dma_inlet,junction,customer_tapstorage_capacity_m3dma_iddevice_idmeter_idmeter_serialSerial number of the referenced meter. Omitted when unknown.
meter_holder_nameDisplay name of the customer who holds the account the meter is installed on. Omitted when unknown.
created_atupdated_at
has_morenext_cursortotal_count
Permissões network:read · Funções: admin, analyst, field_reader, field_supervisor, operations, owner, viewer
curl -X GET "$BUSINESS_API/assets" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/assets", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/assets",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/assets", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"data": [
{
"id": "net_2VvwojxMyhpssxfSu15amL5GsjX",
"tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
"code": "COD-2026-000142",
"name": "Ana Matsinhe",
"asset_type": "source",
"service_area_id": "ser_23fmkpfkC17kSVJ2spjyiBbOED9",
"status": "operational",
"capacity": 1,
"latitude": -25.9653,
"longitude": 32.5892,
"elevation": 1,
"installation_date": "2026-11-19T09:30:00Z",
"properties": {},
"node_type": "source_river",
"storage_capacity_m3": 1,
"dma_id": "dma_2gE3tiwbLQQnDGcrVkstPO8Bjkg",
"device_id": "dev_2E2J9iiRr2o7PWMrj8wJrQyb9sK",
"meter_id": "mtr_21F02THKOD7uMpvUalZKsBv64nN",
"meter_serial": "meter serial",
"meter_holder_name": "Ana Matsinhe",
"created_at": "2026-11-19T09:30:00Z",
"updated_at": "2026-11-19T09:30:00Z"
}
],
"has_more": true,
"next_cursor": "next cursor",
"total_count": 125000
}