Agents

Get agent usage

GET /v1/agents/{agent_id}/metrics
Permission
read:configs
Tokens
API key, CLI user token, Sandbox token

Read usage and spend windows for an agent.

Path parameters

agent_idstringrequired
{
}

Response

samplesarray<AgentSessionSample>required

One entry per finished session, unordered.

spend_windowsarray<ConfigSpendWindow>required

Trailing spend versus the budget, one entry per window (1, 7, and 28 days).

On this page

No Headings
Schedule a demo