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

# Read billing state

> Prepaid balance and auto-reload flags for identified account. Checkout and auto-reload mutations are browser-session only (not documented here).



## OpenAPI

````yaml GET /api/billing/state
openapi: 3.1.0
info:
  description: >-
    Starcovery helps you find and hire real Instagram and TikTok creators from a
    plain-language brief, on the web or from your agents. REST and MCP API.
    Search accepts unsigned callers. Campaigns, billing state, and keys accept
    browser session, x-api-key, or Bearer. MCP accepts OAuth, x-api-key, Bearer,
    or last-resort ?api_key= (no session). Machine Payments Protocol
    (x-payment-info) on GET /api/search when provisioned. Signup and claim at
    auth.md.
  title: Starcovery
  version: 1.0.0
servers:
  - url: https://www.starcovery.com
security: []
paths:
  /api/billing/state:
    get:
      summary: Read billing state
      description: >-
        Prepaid balance and auto-reload flags for identified account. Checkout
        and auto-reload mutations are browser-session only (not documented
        here).
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingState'
          description: Billing state
        '401':
          description: >-
            unauthorized: missing identity; WWW-Authenticate points at
            protected-resource metadata
        '429':
          description: Rate limited
      security:
        - ApiKeyHeader: []
        - BearerAuth: []
        - SessionCookie: []
components:
  schemas:
    BillingState:
      additionalProperties: false
      properties:
        autoReload:
          type: boolean
        balance:
          type: number
        cardOnFile:
          type: boolean
        lastPack:
          enum:
            - '25'
            - '100'
            - '500'
            - '2000'
            - null
          type:
            - string
            - 'null'
        reloadFailed:
          type: boolean
      required:
        - autoReload
        - balance
        - cardOnFile
        - lastPack
        - reloadFailed
      type: object
  securitySchemes:
    ApiKeyHeader:
      description: Product API key or agent access token
      in: header
      name: x-api-key
      type: apiKey
    BearerAuth:
      bearerFormat: access token
      description: >-
        Bearer access token (agent registration), product API key, or MCP OAuth
        access token
      scheme: bearer
      type: http
    SessionCookie:
      description: >-
        Browser better-auth session cookie (REST only; MCP rejects sessions).
        Name is better-auth.session_token, or __Secure-better-auth.session_token
        on HTTPS.
      in: cookie
      name: better-auth.session_token
      type: apiKey

````