Set the monthly usage limit
Caps what usage may spend in a UTC month (requires full scope). Requests past it are refused until the next month or a higher limit.
Authorization
cloady Personal API token (cldy_…)
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/me/balance" \ -H "Content-Type: application/json" \ -d '{ "limitCents": 1 }'{ "balance": { "balanceMicros": 0, "limitCents": 1, "exempt": true, "month": { "ai": { "spentMicros": 0, "freeMicros": 0, "count": 0 }, "email": { "spentMicros": 0, "freeMicros": 0, "count": 0 } }, "entries": [ { "id": "string", "kind": "topup", "amountMicros": 0, "note": "string", "createdAt": "string" } ] }}Get the usage balance GET
The account's prepaid balance for pay-as-you-go usage, this month's spend on AI and email, the monthly limit and recent top-ups.
Add funds to the usage balance POST
Charges the account card and adds the amount to the usage balance (requires full scope). A bank that wants 3-D Secure answers 402 `payment_action_required` with `clientSecret` and `paymentIntentId`; confirm it in the browser and repeat the request with `paymentIntentId`.