---
title: "Update auto-refill settings"
method: PATCH
path: "/balance"
tags: ["Account"]
---

# Update auto-refill settings

`PATCH /balance`

## Request

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

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.

## Request body

- object
  - `enabled` boolean, required: Enable or disable auto top-up.
  - `refill_amount_usd` 20 | 50 | 100: Required when enabling auto-refill.
  - `min_threshold_tokens` number: Token threshold; converted to USD for storage. Implied USD must be between 5 and 50 when enabling.

## Response `200`

Updated settings or current state.

- object

## Other responses

- `400`: Validation error.
- `401`: Unauthorized.
- `500`: Server error.

---

[API](https://skmtc.dev/riskmodels/apis/riskmodels-api.md) · [All operations](https://skmtc.dev/riskmodels/apis/riskmodels-api/llms.txt) · [OpenAPI document](https://skmtc.dev/riskmodels/apis/riskmodels-api/revisions/1a034cad408a?raw)
