Account

Update auto top-up settings

Changed on

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. <span title="Pricing shown is default pricing. Actual pricing may vary.">ⓘ</span></span>

post/v1/auto-topup/configure

Request

  • Base URL
    https://api.fiber.ai
  • URL
    https://api.fiber.ai/v1/auto-topup/configure
  • Auth
    none declared

Request body

apiKeystring required

Your Fiber API key

subscriptionIdstring required

The subscription to configure auto top-up for. An organization can have multiple subscriptions, each with its own auto top-up settings.

isEnabledboolean required

Whether auto top-up is enabled

creditThresholdinteger nullable

Credit balance threshold below which auto top-up triggers. Required when isEnabled is true.

creditsToBuyinteger nullable

Number of credits to purchase when auto top-up triggers. Required when isEnabled is true.

maxPerDayinteger nullable

Maximum number of auto top-ups allowed in a rolling 24-hour window. Set to null to remove the daily limit.

maxPerMonthinteger 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

Default Response

advicestring[] nullable

Tips, recommendations, and suggestions for using this API effectively.

Changes

    • breaking

      added the new required request property

    • breaking

      the response property became nullable for the status

    • breaking

      the response property became optional for the status

    • breaking

      added subschema #1 subschema #2 to the response property oneOf list for the response status

    • info

      the response's property default value was removed for the status

    • info

      removed subschema #1 subschema #2 from the response property oneOf list for the response status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status