Usage endpoints report metrics — interaction counts and token volume — for
one agent or aggregated across a project, over a time window you choose.
Get usage
GET /management/v1/agents/{agentId}/usage
GET /management/v1/projects/{projectId}/usage
Same parameters and response for both — the project variant aggregates across
every agent in the project.
Query parameters
Start of the usage window (RFC 3339). Omit for no lower bound.
End of the usage window (RFC 3339). Omit for no upper bound.
Response
Number of interactions in the window.
Total input tokens, cache writes included.
Total cached (read) input tokens.
Total input tokens written to the cache. Part of input_tokens, not in
addition to it.
Number of model calls whose token usage was reported incompletely.
Sum of input, output, cache-read, and reasoning tokens.