List utility governed metrics catalog
LogsGET /metrics
Returns, under data, the tenant's month-to-date operational figures, each with a key, name, unit, value and computation timestamp: billed and collected amounts, collection efficiency, billed volume, open receivables, active connections and active meters. Values are computed on each call. Requires the reports:read permission.
Parameters
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
Returns
200 Metrics catalog
Permissions reports:read · Roles: admin, analyst, finance, owner
curl -X GET "$BUSINESS_API/metrics" \
-H "Authorization: Bearer sk_test_..."
# No matching CLI command; use cURL or direct HTTP.
const res = await fetch("$BUSINESS_API/metrics", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/metrics",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/metrics", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Response 200
Metrics catalog