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.