List District Metered Areas
LogsGET /dmas
Returns the tenant's district metered areas (DMAs), newest first, with their code, name, service area, inflow and outflow meters and target pressure. Results are cursor-paginated (default 20, maximum 100); the handler also accepts service_area_id and a q search that matches name or code. Requires the network:read permission.
Parameters
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Returns
200 DMAs
Show attributes
dataShow child attributes
idtenant_idcodenameservice_area_idinflow_meter_idoutflow_meter_idtarget_pressure_barcreated_atupdated_at
has_morenext_cursortotal_count
Permissions network:read · Roles: admin, analyst, field_reader, field_supervisor, operations, owner, viewer
curl -X GET "$BUSINESS_API/dmas" \
-H "Authorization: Bearer sk_test_..."
# No matching CLI command; use cURL or direct HTTP.
const res = await fetch("$BUSINESS_API/dmas", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/dmas",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/dmas", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"data": [
{
"id": "dis_23tmgLnkIX3uk5bAOhBQir5OGRd",
"tenant_id": "ten_2ugFXIC316WXzGu1HGal90AxTA6",
"code": "COD-2026-000142",
"name": "Ana Matsinhe",
"service_area_id": "ser_23fmkpfkC17kSVJ2spjyiBbOED9",
"inflow_meter_id": "inf_2bVsqJLmy71AotDagTtQg7dkEvN",
"outflow_meter_id": "out_2OqdBqYxFeEJx8CvPccxRMK9JKu",
"target_pressure_bar": 1,
"created_at": "2026-11-19T09:30:00Z",
"updated_at": "2026-11-19T09:30:00Z"
}
],
"has_more": true,
"next_cursor": "next cursor",
"total_count": 125000
}