---
title: "Update auto top-up settings"
method: POST
path: "/v1/auto-topup/configure"
tags: ["Account"]
---

# Update auto top-up settings

`POST /v1/auto-topup/configure`

Update the organization's auto top-up configuration. Enabling auto top-up will automatically charge your organization's saved payment method via Stripe when your credit balance falls below the configured threshold. AI agents should confirm with a human operator before enabling this feature.

<span>⚡ <strong>Rate limit:</strong> 10 requests per 1 minute</span>

<span>💰 <strong>Cost:</strong> FREE! No credits are charged for this API.&nbsp;<span title="Pricing shown is default pricing. Actual pricing may vary.">ⓘ</span></span>

## Request body

- object
  - `apiKey` string, required — Your Fiber API key
  - `subscriptionId` string, required — The subscription to configure auto top-up for. An organization can have multiple subscriptions, each with its own auto top-up settings.
  - `isEnabled` boolean, required — Whether auto top-up is enabled
  - `creditThreshold` integer, nullable — Credit balance threshold below which auto top-up triggers. Required when isEnabled is true.
  - `creditsToBuy` integer, nullable — Number of credits to purchase when auto top-up triggers. Required when isEnabled is true.
  - `maxPerDay` integer, nullable — Maximum number of auto top-ups allowed in a rolling 24-hour window. Set to null to remove the daily limit.
  - `maxPerMonth` integer, nullable — Maximum number of auto top-ups allowed per calendar month (UTC). When reached, auto top-up pauses until the next calendar month. Set to null to remove the monthly limit.

## Response `200`

Default Response

- object
  - `output` union, required
    - object
      - `configured` true, required
      - `subscriptionId` string, required — The subscription these auto top-up settings belong to
      - `isEnabled` boolean, required — Whether auto top-up is currently enabled for this organization
      - `creditThreshold` integer, required — Credit balance threshold below which auto top-up triggers
      - `creditsToBuy` integer, required — Number of credits purchased when auto top-up triggers
      - `maxPerDay` integer, nullable — Maximum number of auto top-ups allowed in a rolling 24-hour window. When reached, auto top-up pauses until the window passes. Leave as null to not enforce daily limit.
      - `maxPerMonth` integer, nullable — Maximum number of auto top-ups allowed per calendar month (UTC). When reached, auto top-up pauses until the next calendar month. Leave as null to not enforce monthly limit.
    - object
      - `configured` false, required
      - `subscriptionId` string, required — The subscription these auto top-up settings belong to
  - `chargeInfo` union, required
    - object — Credits were charged immediately for this operation
      - `method` 'charged-now', required
      - `creditsCharged` number, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
    - object — Credits will be charged after the operation completes
      - `method` 'charging-later', required
      - `message` string, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
    - object — Credits that were charged for an asynchronous operation
      - `method` 'charged-for-async-process', required
      - `creditsCharged` number, required
      - `message` string, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
    - object — No credits were charged for this operation
      - `method` 'free', required
      - `message` string, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
    - object — Credits were refunded for this operation
      - `method` 'credits-refunded', required
      - `creditsRefunded` number, required
      - `message` string, required
      - `lowCreditAlert` object, nullable — Contains a link to get more credits, a warning message, and the remaining credit count.
        - `getMoreCreditsUrl` string, uri, required — URL to top up credits or restart billing cycle to get fresh credits.
        - `message` string, required — Human-readable credits warning.
        - `availableCredits` number, required — Number of credits remaining in the current billing period.
  - `warnings` object[], nullable — Warnings about extraneous fields in request
    - `field` string, required — Full path to extraneous field (e.g., 'searchParams.ExtraField')
    - `message` string, required — Warning message
  - `advice` string[], nullable — Tips, recommendations, and suggestions for using this API effectively.

## Other responses

- `400` — Default Response
- `401` — Default Response
- `402` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `429` — Default Response
- `500` — Default Response
- `503` — Default Response

---

[API](https://skmtc.net/fiber/apis/fiber-ai-api.md) · [All operations](https://skmtc.net/fiber/apis/fiber-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fiber/fiber-ai-api/versions/0c537984b99f/schema)
