Configure automatic credit replenishment

Set up automatic credit top-up. When credit balance drops below the threshold during API usage, the saved payment method is charged automatically and credits are added. Requires billing activated.

post/api/v1/billing/auto-topup

Request

  • Base URL: https://api.virga.dev
  • URL: https://api.virga.dev/api/v1/billing/auto-topup
  • Auth: API key in header X-API-Key

Request body

enabledboolean required

Enable or disable auto-topup

thresholdnumber

Credit balance threshold that triggers auto-topup (required when enabled)

bundle'500' | '2000' | '10000'

Bundle to purchase when threshold is reached (required when enabled)

Response

Auto-topup configured

messagestring

Changes

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