Account

Update auto-refill settings

Updates prepaid auto-refill on agent_accounts. When enabled is true, refill_amount_usd (20, 50, or 100) and min_threshold_tokens (maps to USD threshold between $5 and $50) are required.

patch/balance

Request

  • Base URL: https://riskmodels.app/api
  • URL: https://riskmodels.app/api/balance
  • Auth: HTTP bearer

Request body

enabledboolean required

Enable or disable auto top-up.

refill_amount_usd20 | 50 | 100

Required when enabling auto-refill.

min_threshold_tokensnumber

Token threshold; converted to USD for storage. Implied USD must be between 5 and 50 when enabling.

Response

Updated settings or current state.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.