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

# Check remaining credits

> Return the remaining API credit balance for the account tied to the API key.

Return the remaining API credit balance for the account tied to your API key. Checking your balance is free and never deducts credits.


## OpenAPI

````yaml GET /v2/credits
openapi: 3.1.0
info:
  title: govfiles Corporate Entity API
  version: 0.2.0
  description: >-
    Search US business entity records by name, registry number, jurisdiction, or
    status.
servers:
  - url: https://api.govfiles.dev
security: []
tags:
  - name: Health
    description: Service health checks.
  - name: Companies
    description: Corporate entity search and lookup endpoints.
  - name: Officers
    description: Officer, director, and agent search endpoints.
  - name: Account
    description: Account and billing endpoints.
paths:
  /v2/credits:
    get:
      tags:
        - Account
      summary: Check remaining credits
      description: >-
        Return the remaining API credit balance for the account tied to the API
        key.
      operationId: getCreditsV2
      parameters: []
      responses:
        '200':
          description: Remaining credit balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditBalanceResponse'
        '401':
          description: Missing or invalid API key.
        '422':
          description: Validation error.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    CreditBalanceResponse:
      properties:
        balance:
          type: integer
          description: Remaining API credits for the account tied to this API key.
          examples:
            - 1000
          example: 1000
      type: object
      required:
        - balance
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````