Get billing usage for a month
/billing/usage
Query Parameters
05daecaf-4365-42e8-8370-8127de5dd717First day of the month to report, as YYYY-MM-01.
2026-08-01Response Body
Measured counts for the period. A metric is null when it could not be measured for this period (API calls past VictoriaLogs retention) — never a zero that was not observed. This can happen on an invoiced month too, not only a skipped one; only the affected metric is null, not the whole response.
The priced breakdown. Empty for a skip whose pricing itself is unreliable (a component past VictoriaLogs retention); populated for other skips (exempt, no Stripe customer, nothing to bill) so what the month would have cost is still visible, and always populated for an invoiced month.
Net amount charged.
28800Active connections — August 2026 (42 used, 10 included)320010Amount before discount.
32000usage:active_connectionbase_feeusagefixed
connectoractive_connectionapi_callsuperquery_account
Usage lines only — measured minus included, before block rounding.
32Exclusive end (first day of the next period).
Units charged; for usage lines the number of blocks of unit_size.
32Price per charged unit (per block for usage lines).
1000Usage lines only — units per block.
1August 2026snapshotlive
Net amount priced for the period. null only when the month's snapshot was skipped because a metric it needed could not be measured — never a zero that was not billed. An unmeasurable metric on an invoiced month does not null this out; it prices normally from what was measurable. On a skip whose priced metrics were all measurable, this is a real 0 (nothing was billed) even though lines above is still populated with what the period would have cost — the two intentionally disagree there, since one states what happened and the other what would have.
curl -X GET 'https://api.truto.one/billing/usage' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/billing/usage', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/billing/usage"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())