Skip to content

Workspace

An agent's spent and left

GET/api/w/:wid/agents/:aid/money

What the agent has spent and has left. ai is its AI spend this month against its own budget, in micro-dollars (budgetMicros, usedMicros, leftMicros, with periodStart and periodEnd); it is null when the agent has no budget. payments has one entry per active payment rule: limit, used and left in minor units, and resetsAt. increase is a temporary increase waiting for an owner, or null, and canAskIncrease says whether the caller may ask for one.

This response is from Amethyst, the made-up demo company:

#Authentication

Session cookie

A signed-in person: the console's session cookie. Every state-changing request also carries the header x-immiscible-csrf: 1, and the member's role decides what it may do. Bearer tokens are ignored on these routes, so no machine credential can reach them.

#Path parameters

widstringrequired

Workspace id

aidstringrequired

Agent id