ManagementAggregate spend / tokens for a window
Aggregate spend / tokens for a window
1 min readEdit this page
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
Path Parameters
nsid*string
Id of the target namespace. Must be owned by the caller (or equal a namespace-baked credential's own namespace), else 404.
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://example.com/v1/namespaces/string/usage"{}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}{ "error": { "code": "string", "message": "string" }}How is this guide?