Skip to main content
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

cURL

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

string
Start of the usage window (RFC 3339). Omit for no lower bound.
string
End of the usage window (RFC 3339). Omit for no upper bound.

Response

integer
Number of interactions in the window.
integer
Total input tokens.
integer
Total output tokens.
integer
Total cached (read) input tokens.
integer
Total reasoning tokens.
integer
Sum of input, output, cache-read, and reasoning tokens.