list_credit_usage
The workspace's credit consumption — per-area rollup + recent usage.
Request
GET /api/v1/ops/credits/usage?limit=50Parameter
In
Type
Required
Description
curl -H "Authorization: Bearer $TESTVIBE_API_KEY" \
"$TESTVIBE_SERVER/api/v1/ops/credits/usage?limit=20"testvibe credits usage --limit 20Response
{
"breakdown": [
{ "activity": "generation", "total": 4120, "compute": 3600, "ai": 520 },
{ "activity": "assistant", "total": 1340, "compute": 0, "ai": 1340 },
{ "activity": "run", "total": 880, "compute": 880, "ai": 0 }
],
"entries": [
{
"createdUtc": "2026-06-17T15:10:43Z",
"amount": -409,
"reason": "Generation compute (409s)",
"activity": "generation",
"category": "session"
},
{
"createdUtc": "2026-06-17T13:21:56Z",
"amount": -1340,
"reason": "AI usage",
"activity": "assistant",
"category": "ai_tokens"
}
]
}Errors
Last updated
Was this helpful?
