API referenceAccount and billing
Set a budget
Cap spend for the org, one key, or one agent per day, month or total.
Authorization
bearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/v1/budgets" \ -H "Content-Type: application/json" \ -d '{ "scope": "string", "period": "day", "limit_micro": 0 }'{ "ok": true}Simulate a billing event POST
Test and simulated modes only: payment failure, dispute (freezes the org), refund, renewal, downgrade, cancel, auto-recharge, grant expiry, or reset simulated state.
Get entitlements GET
This org's plan, resolved limits (null means no cap), features and usage this month, including logged calls and overage blocks.