Update Token Balance
Update Token Balance
Update an agent’s output token balance by incrementing or setting directly.
POST
Update Token Balance
Authentication
Requires JWT token or Platform API key viaAuthorization: Bearer <token> header.
Agent UUID
Number of output tokens to add (increment) or set as the new balance (set)
Update type:
increment (adds to current balance) or set (replaces balance)Example Request
Increment Balance
Set Balance
Example Response
Token balance controls how many output tokens the agent can generate. At Sonnet 4.5 pricing (~15 of usage.
Status Codes
| Code | Description |
|---|---|
200 | Balance updated successfully |
400 | Invalid amount or type |
401 | Unauthorized - invalid or missing authentication |
404 | Agent not found |

