> ## Documentation Index
> Fetch the complete documentation index at: https://docs.videodb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Auto-Recharge Settings

> Retrieve automatic credit recharge configuration

Retrieve your current auto-recharge settings, including whether auto-recharge is enabled and the threshold amount.

<CodeGroup>
  ```python Python theme={null}
  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')}")
  ```

  ```javascript Node.js theme={null}
  const response = await fetch("https://api.videodb.io/billing/auto_recharge", {
      method: "GET",
      headers: {
          "x-access-token": "your_api_key"
      }
  });

  const autoRecharge = await response.json();

  console.log(`Enabled: ${autoRecharge.enabled}`);
  console.log(`Threshold: ${autoRecharge.thresholdCredits}`);
  console.log(`Recharge Amount: ${autoRecharge.rechargeAmount}`);
  ```
</CodeGroup>

<Note>
  * 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
</Note>

<CardGroup cols={2}>
  <Card title="Configure Auto-Recharge" icon="pen" href="/api-reference/billing/set_auto_recharge">
    Enable and modify auto-recharge settings
  </Card>

  <Card title="Get Usage Statistics" icon="chart-line" href="/api-reference/billing/get_usage">
    Monitor your current credit balance
  </Card>
</CardGroup>


## OpenAPI

````yaml GET /billing/auto_recharge
openapi: 3.0.3
info:
  title: VideoDB Server API
  description: >
    VideoDB Server API for video, audio, and image processing with AI
    capabilities.

    This API provides comprehensive video management, search, indexing, and
    AI-powered features.
  version: 1.0.0
  contact:
    name: VideoDB Support
    url: https://videodb.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.videodb.io
    description: Production server
  - url: https://staging-api.videodb.io
    description: Staging server
security:
  - ApiKeyAuth: []
tags:
  - name: Authentication
    description: User authentication and API key management
  - name: Collections
    description: Collection management operations
  - name: Videos
    description: Video upload, processing, and management
  - name: Audio
    description: Audio management operations
  - name: Images
    description: Image management operations
  - name: Search
    description: Content search and indexing
  - name: AI Generation
    description: AI-powered content generation
  - name: Billing
    description: Billing and usage management
  - name: RTStream
    description: Real-time streaming operations
  - name: Utilities
    description: Utility endpoints
  - name: Meeting
    description: Meeting recording and management
  - name: Capture
    description: Capture session management for recording streams
  - name: Editor
    description: Timeline editor operations
  - name: Transcode
    description: Media transcoding operations
  - name: Assets
    description: Cross-collection asset listing
paths:
  /billing/auto_recharge:
    get:
      summary: Get auto recharge settings
      responses:
        '200':
          description: Auto recharge settings
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      enabled:
                        type: boolean
                        example: true
                      threshold:
                        type: number
                        example: 10
                      amount:
                        type: number
                        example: 50
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-access-token
      description: API key for authentication (sk-xxx format)

````