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

# Topup Balance

> Top up credit balance.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/billing/topup
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/billing/topup:
    post:
      tags:
        - Billing
      summary: Topup Balance
      description: Top up credit balance.
      operationId: topup_balance_v1_billing_topup_post
      parameters:
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopupRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TopupResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TopupRequest:
      properties:
        amount_usd:
          type: number
          title: Amount Usd
        allow_duplicate:
          type: boolean
          title: Allow Duplicate
          default: false
        payment_method_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Payment Method Id
      type: object
      required:
        - amount_usd
      title: TopupRequest
    TopupResponse:
      properties:
        success:
          type: boolean
          title: Success
        new_balance_usd:
          type: number
          title: New Balance Usd
        frozen:
          type: boolean
          title: Frozen
      type: object
      required:
        - success
        - new_balance_usd
        - frozen
      title: TopupResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.