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

# Get credential balance

> Read the available and reserved wallet balance and the current credential's limits. OAuth access tokens require `billing:read`.



## OpenAPI

````yaml /openapi.json get /v1/credentials/balance
openapi: 3.1.0
info:
  title: Mouter API
  version: '1.0'
  description: Discover tools, submit tasks, and read results and charges.
servers:
  - url: https://api.mouter.ai
    description: Production
security: []
paths:
  /v1/credentials/balance:
    get:
      tags:
        - Billing
      summary: Get credential balance
      description: >-
        Read the available and reserved wallet balance and the current
        credential's limits. OAuth access tokens require `billing:read`.
      operationId: get_credential_balance
      responses:
        '200':
          description: Get credential balance
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 0
                  message:
                    type: string
                    const: ''
                  data:
                    $ref: '#/components/schemas/CredentialBalance'
                  request_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - code
                  - message
                  - data
                  - request_id
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '503':
          $ref: '#/components/responses/Error503'
      security:
        - Bearer: []
components:
  schemas:
    CredentialBalance:
      type: object
      properties:
        wallet:
          type: object
          properties:
            available_quota:
              type: integer
              description: Legacy raw quota. Prefer the matching `_amount` field.
            reserved_quota:
              type: integer
              minimum: 0
              description: Legacy raw quota. Prefer the matching `_amount` field.
            available_amount:
              type: number
              description: Available wallet credits.
            reserved_amount:
              type: number
              minimum: 0
              description: Credits reserved by in-flight tasks.
          required:
            - available_quota
            - reserved_quota
            - available_amount
            - reserved_amount
        credential:
          type: object
          properties:
            limit_quota:
              anyOf:
                - type: integer
                  minimum: 0
                - type: 'null'
            spent_quota:
              type: integer
              minimum: 0
            reserved_quota:
              type: integer
              minimum: 0
            available_quota:
              anyOf:
                - type: integer
                  minimum: 0
                - type: 'null'
            limit_amount:
              anyOf:
                - type: number
                  minimum: 0
                - type: 'null'
              description: Credential credit limit; null means no credential-specific cap.
            spent_amount:
              type: number
              minimum: 0
            reserved_amount:
              type: number
              minimum: 0
            available_amount:
              anyOf:
                - type: number
                  minimum: 0
                - type: 'null'
              description: >-
                Remaining credential credits; null without a cap. Not wallet
                credit.
          required:
            - limit_quota
            - spent_quota
            - reserved_quota
            - available_quota
            - limit_amount
            - spent_amount
            - reserved_amount
            - available_amount
        quota_per_usd:
          type: integer
          description: Legacy conversion constant.
        unit:
          type: string
          const: credit
      required:
        - wallet
        - credential
        - quota_per_usd
        - unit
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: 'null'
        request_id:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - code
        - message
        - data
        - request_id
  responses:
    Error400:
      description: Invalid request parameters, headers, or body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: A valid credential is required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: The credential lacks permission.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: The operation is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: A Mouter API key or OAuth access token.

````

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