Skip to main content
GET
/
billing
/
auto_recharge
Get auto recharge settings
curl --request GET \
  --url https://api.videodb.io/billing/auto_recharge \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "data": {
    "enabled": true,
    "threshold": 10,
    "amount": 50
  }
}
Retrieve your current auto-recharge settings, including whether auto-recharge is enabled and the threshold amount.
import requests

response = requests.get(
    "https://api.videodb.io/billing/auto_recharge",
    headers={"x-access-token": "your_api_key"}
)

auto_recharge = response.json()

print(f"Enabled: {auto_recharge.get('enabled')}")
print(f"Threshold: {auto_recharge.get('threshold_credits')}")
print(f"Recharge Amount: {auto_recharge.get('recharge_amount')}")
  • Auto-recharge triggers when your balance falls below the threshold amount
  • Recharge amount is automatically charged to your payment method on file
  • Feature is optional and disabled by default
  • You can enable, disable, or modify settings at any time

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Response

200 - application/json

Auto recharge settings

success
boolean
Example:

true

data
object