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

# Get credit balance

> Your workspace's spendable credit: the plan's monthly credit (spent first, resets monthly), then purchased credit, then preserved credit, with the plan name and its concurrency and session-length limits. These are the figures the dashboard's Billing page shows.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/billing/balance
openapi: 3.0.0
info:
  version: 1.0.0
  title: Driver API
  description: API for interacting with the Driver.dev browser network.
  contact:
    name: Driver support
    email: alex@driver.dev
servers:
  - url: https://api.driver.dev
    description: Production
security: []
tags:
  - name: Sessions
  - name: Profiles
  - name: Account
  - name: Billing
  - name: Extensions
  - name: Pools
externalDocs:
  url: https://docs.driver.dev
  description: Driver documentation
paths:
  /v1/billing/balance:
    get:
      tags:
        - Billing
      summary: Get credit balance
      description: >-
        Your workspace's spendable credit: the plan's monthly credit (spent
        first, resets monthly), then purchased credit, then preserved credit,
        with the plan name and its concurrency and session-length limits. These
        are the figures the dashboard's Billing page shows.
      responses:
        '200':
          description: Your workspace's credit balance.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balance'
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingError'
        '401':
          description: Missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingError'
        '404':
          description: '`no_billing_workspace`: the API key does not belong to a workspace.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingError'
        '409':
          description: >-
            `balance_unavailable`: the workspace is not billed with monthly
            credit yet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingError'
        '502':
          description: Billing could not answer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingError'
        '503':
          description: Billing is not configured on this gateway.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingError'
      security:
        - Bearer: []
components:
  schemas:
    Balance:
      type: object
      properties:
        plan:
          type: object
          properties:
            name:
              type: string
              description: Plan name.
              example: Advanced
          required:
            - name
        status:
          type: string
          description: 'Account status: `active`, `trialing`, `past_due` or `canceled`.'
          example: active
        monthlyCredit:
          type: object
          nullable: true
          properties:
            remaining:
              $ref: '#/components/schemas/Money'
            granted:
              allOf:
                - $ref: '#/components/schemas/Money'
                - nullable: true
                  description: >-
                    Monthly credit granted this period, or null when billing did
                    not report it.
            resetsAt:
              type: string
              nullable: true
              description: >-
                When the monthly credit resets to the granted amount (ISO 8601),
                or null when unknown.
          required:
            - remaining
            - granted
            - resetsAt
          description: >-
            The plan's monthly dollar credit; null for a plan that does not
            include one.
        purchasedCredit:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Credit bought as top-ups. Spent after the monthly credit; never
                expires.
        preservedCredit:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Credit carried over from earlier billing. Spent after purchased
                credit; never expires.
        totalSpendable:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: Monthly credit remaining plus purchased and preserved credit.
        limits:
          type: object
          properties:
            concurrentBrowsers:
              type: integer
              minimum: 0
              description: Browser sessions that may run at the same time.
            maxSessionSeconds:
              type: integer
              minimum: 0
              description: Longest a single session may run, in seconds.
          required:
            - concurrentBrowsers
            - maxSessionSeconds
      required:
        - plan
        - status
        - monthlyCredit
        - purchasedCredit
        - preservedCredit
        - totalSpendable
        - limits
      example:
        plan:
          name: Advanced
        status: active
        monthlyCredit:
          remaining:
            cents: 3125.5
            dollars: 31.255
          granted:
            cents: 4900
            dollars: 49
          resetsAt: '2026-12-14T09:20:08.000Z'
        purchasedCredit:
          cents: 2500
          dollars: 25
        preservedCredit:
          cents: 0
          dollars: 0
        totalSpendable:
          cents: 5625.5
          dollars: 56.255
        limits:
          concurrentBrowsers: 30
          maxSessionSeconds: 3600
    BillingError:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Machine-readable error code
      required:
        - error
    Money:
      type: object
      properties:
        cents:
          type: number
          description: >-
            Amount in US cents. Bandwidth is charged per MB, so this can hold
            fractions of a cent.
        dollars:
          type: number
          description: The same amount in US dollars (cents / 100).
      required:
        - cents
        - dollars
      description: >-
        Monthly credit left this period. Spent first; it expires at the reset
        and does not roll over.
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: >-
        A workspace API key from Settings → API keys in the dashboard
        (https://app.driver.dev), sent as a bearer token.

````

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