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.
Null on a snapshot written before this metric existed.
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.
28800Usage lines only — which connectors the count covers. Absent on a line written before connector groups existed, which means all.
allgoogle_workspaceother
Invoice wording. Usage lines mention the included allowance only when the component has one.
Active connections — August 2026 (42 used, 10 included)320010Amount before discount.
32000Connector-term lines only — the connector the term is for.
Connector-term lines only — the connector's name.
salesforceStable per plan and period. usage:<metric> for a usage line over all connectors, usage:<metric>@<connector_group> for a grouped one; term:<component key>:<integration id>:<term start> for a connector billed in advance.
usage:active_connection@google_workspacebase_feeusagefixedconnector_term
connectorenabled_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.
32Usage lines of a tiered component only — the band this line prices. Keys are usage:<component key>:tier:<index> (per-unit) and …:tier:<index>:flat (the band's flat amount).
4 properties
First unit of the band (1-based, inclusive).
unitflat
Last unit of the band (inclusive); null for "and up".
Price 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())