---
title: "Change auto top-up settings [write]"
method: PATCH
path: "/billing/auto-topup"
---

# Change auto top-up settings \[write\]

`PATCH /billing/auto-topup`

## Request

- Base URL: `https://api.agentsky.dev/v1`
- URL: `https://api.agentsky.dev/v1/billing/auto-topup`
- Auth: none declared

Omitted fields keep their value. threshold_usd is 5, 10 or 20; amount_usd is 10, 20, 50 or 100. Turning it on needs a saved card (402 no_payment_method — add one with POST /billing/card-setup) and agrees to the card processing fee each charge adds; turning it off is remembered. A workspace key or a restricted credential cannot change it.

## Request body

- object
  - `enabled` boolean
  - `threshold_usd` 5 | 10 | 20
  - `amount_usd` 10 | 20 | 50 | 100

## Response `200`

Saved

- object
  - `enabled` boolean, required
  - `threshold_usd` number, required
  - `amount_usd` number, required
  - `failure` object, nullable, required
    - `reason` string
    - `paused` boolean

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/billing/auto-topup/patch.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
