Aggregate spend / tokens for a window
Sums usage / pending_debit_recovery ledger entries and the requests rows over the window. Defaults to the last 30 days.
Requires the usage:read scope.
x-api-key<token>
Anthropic-style API key header.
In: header
Query Parameters
from?string
Inclusive RFC 3339 timestamp lower bound.
to?string
Exclusive RFC 3339 timestamp upper bound.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.bitrouter.ai/v1/usage"{}{
"error": null
}{
"error": null
}{
"error": null
}How is this guide?