Billing
Set auto-recharge
Stores auto-recharge settings and returns the updated billing state. Requires billing_write.
When enabled, and a card is saved, the server checks after each run admission and after each 402: if the available balance is below threshold_micros, it charges amount_micros to the saved card, at most once per organization per clock hour. The credit lands when the payment succeeds. See Auto-recharge.
PUT
Set auto-recharge
Authorizations
An API key (otsk_ + 64 hex) or a console session token.
Body
application/json
Response
The updated billing state.
Signed. Credits, minus settled spend, minus what unsettled runs hold.
Available options:
usd Newest first, at most 50.