Skip to main content
POST
Update Token Balance

Authentication

Requires JWT token or Platform API key via Authorization: Bearer <token> header.
string
required
Agent UUID
number
required
Number of output tokens to add (increment) or set as the new balance (set)
string
required
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 (~15permilliontokens),abalanceof1,000,000tokens15 per million tokens), a balance of 1,000,000 tokens ≈ 15 of usage.

Status Codes