> ## 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.

# List session costs

> What each session cost, newest first, broken into the five price categories, with what monthly, purchased and preserved credit paid. These are billing's own records, the same ones the dashboard's Billing activity shows; nothing is recomputed. Sessions billed before the workspace moved to monthly-credit billing are not listed.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/billing/sessions
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/sessions:
    get:
      tags:
        - Billing
      summary: List session costs
      description: >-
        What each session cost, newest first, broken into the five price
        categories, with what monthly, purchased and preserved credit paid.
        These are billing's own records, the same ones the dashboard's Billing
        activity shows; nothing is recomputed. Sessions billed before the
        workspace moved to monthly-credit billing are not listed.
      parameters:
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
            description: Sessions per page, 1 to 100.
          required: false
          description: Sessions per page, 1 to 100.
          name: limit
          in: query
        - schema:
            type: string
            minLength: 1
            maxLength: 512
            description: '`nextCursor` from the previous page.'
          required: false
          description: '`nextCursor` from the previous page.'
          name: cursor
          in: query
      responses:
        '200':
          description: One page of session costs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionCostList'
        '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'
        '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:
    SessionCostList:
      type: object
      properties:
        sessions:
          type: array
          items:
            $ref: '#/components/schemas/SessionCost'
          description: Newest first.
        nextCursor:
          type: string
          nullable: true
          description: Pass as `cursor` for the next page; null on the last page.
      required:
        - sessions
        - nextCursor
      example:
        sessions:
          - sessionId: 9301676abe8b49a98d0331666332ae05
            orgId: org_01KNRFX3833MCT6CX3R9AWR4Z8
            status: settled
            statusDetail: Charged.
            billedAt: '2026-11-27T21:14:00.431Z'
            browserSeconds: 1095.56
            network: driver
            charged:
              cents: 500
              dollars: 5
            paidFrom:
              monthlyCredit:
                cents: 120
                dollars: 1.2
              purchasedCredit:
                cents: 380
                dollars: 3.8
              preservedCredit:
                cents: 0
                dollars: 0
            deductedFromCredit:
              cents: 380
              dollars: 3.8
            categories:
              byopBandwidth:
                quantity: 0
                unit: MB
                rate: null
                charged:
                  cents: 0
                  dollars: 0
                paidFrom:
                  monthlyCredit:
                    cents: 0
                    dollars: 0
                  purchasedCredit:
                    cents: 0
                    dollars: 0
                  preservedCredit:
                    cents: 0
                    dollars: 0
              driverNetworkBandwidth:
                quantity: 1024
                unit: MB
                rate:
                  cents: 500
                  dollars: 5
                  per:
                    quantity: 1024
                    unit: MB
                charged:
                  cents: 500
                  dollars: 5
                paidFrom:
                  monthlyCredit:
                    cents: 120
                    dollars: 1.2
                  purchasedCredit:
                    cents: 380
                    dollars: 3.8
                  preservedCredit:
                    cents: 0
                    dollars: 0
              thirdPartyBandwidth:
                quantity: 0
                unit: MB
                rate: null
                charged:
                  cents: 0
                  dollars: 0
                paidFrom:
                  monthlyCredit:
                    cents: 0
                    dollars: 0
                  purchasedCredit:
                    cents: 0
                    dollars: 0
                  preservedCredit:
                    cents: 0
                    dollars: 0
              platformFeeBandwidth:
                quantity: 1024
                unit: MB
                rate:
                  cents: 0
                  dollars: 0
                  per:
                    quantity: 1024
                    unit: MB
                charged:
                  cents: 0
                  dollars: 0
                paidFrom:
                  monthlyCredit:
                    cents: 0
                    dollars: 0
                  purchasedCredit:
                    cents: 0
                    dollars: 0
                  preservedCredit:
                    cents: 0
                    dollars: 0
              browserHours:
                quantity: 0.30432
                unit: hours
                rate:
                  cents: 0
                  dollars: 0
                  per:
                    quantity: 1
                    unit: hours
                charged:
                  cents: 0
                  dollars: 0
                paidFrom:
                  monthlyCredit:
                    cents: 0
                    dollars: 0
                  purchasedCredit:
                    cents: 0
                    dollars: 0
                  preservedCredit:
                    cents: 0
                    dollars: 0
        nextCursor: 1795689240431~S:9301676abe8b49a98d0331666332ae05
    BillingError:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Machine-readable error code
      required:
        - error
    SessionCost:
      type: object
      properties:
        sessionId:
          type: string
          description: 'The session id: an opaque string; do not validate its format.'
        orgId:
          type: string
          description: Your workspace (organization) ID.
        status:
          type: string
          enum:
            - settled
            - pending
            - held
            - written_off
          description: >-
            `settled`: charged. `pending`: received by billing and not priced
            yet. `held`: chargeable usage that has not been deducted yet and is
            under review. `written_off`: Driver decided not to charge it;
            nothing is owed.
        statusDetail:
          type: string
          description: What the status means for this session's figures.
        billedAt:
          type: string
          nullable: true
          description: >-
            When billing recorded the session (ISO 8601), or null for sessions
            billed before times were recorded.
        browserSeconds:
          type: number
          nullable: true
          minimum: 0
          description: How long the browser ran, as billed.
        network:
          type: string
          enum:
            - byop
            - driver
            - third_party
          description: Which network carried the session's traffic.
        charged:
          allOf:
            - $ref: '#/components/schemas/Money'
            - nullable: true
              description: >-
                Total cost of the session at the plan's rates, including the
                part monthly credit covered. Null when pending, written off, or
                not recorded.
        paidFrom:
          type: object
          properties:
            monthlyCredit:
              allOf:
                - $ref: '#/components/schemas/Money'
                - nullable: true
                  description: Covered by the plan's monthly included credit.
            purchasedCredit:
              allOf:
                - $ref: '#/components/schemas/Money'
                - nullable: true
                  description: Deducted from purchased credit.
            preservedCredit:
              allOf:
                - $ref: '#/components/schemas/Money'
                - nullable: true
                  description: Deducted from preserved credit.
          required:
            - monthlyCredit
            - purchasedCredit
            - preservedCredit
          description: >-
            Where the charge was paid from. Null figures are not known: the
            session is pending or held, or billing did not record that part.
        deductedFromCredit:
          allOf:
            - $ref: '#/components/schemas/Money'
            - nullable: true
              description: >-
                Purchased plus preserved credit taken by this session, the
                figure the dashboard shows as "Deducted from credits".
        categories:
          type: object
          properties:
            byopBandwidth:
              type: object
              properties:
                quantity:
                  type: number
                  nullable: true
                  minimum: 0
                  description: >-
                    Amount used in `unit`; 0 for a category the session did not
                    use.
                unit:
                  type: string
                  enum:
                    - MB
                    - hours
                rate:
                  type: object
                  nullable: true
                  properties:
                    cents:
                      type: number
                      minimum: 0
                    dollars:
                      type: number
                      minimum: 0
                    per:
                      type: object
                      properties:
                        quantity:
                          type: number
                          minimum: 0
                          exclusiveMinimum: true
                        unit:
                          type: string
                          enum:
                            - MB
                            - hours
                      required:
                        - quantity
                        - unit
                  required:
                    - cents
                    - dollars
                    - per
                  description: >-
                    Rate billing applied, for example 500 cents per 1,024 MB.
                    Null when the category was not billed for this session or
                    the rate was not recorded.
                charged:
                  allOf:
                    - $ref: '#/components/schemas/Money'
                    - nullable: true
                      description: >-
                        What this category cost at that rate, or null when not
                        known.
                paidFrom:
                  type: object
                  properties:
                    monthlyCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Covered by the plan's monthly included credit.
                    purchasedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from purchased credit.
                    preservedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from preserved credit.
                  required:
                    - monthlyCredit
                    - purchasedCredit
                    - preservedCredit
                  description: >-
                    Where the charge was paid from. Null figures are not known:
                    the session is pending or held, or billing did not record
                    that part.
              required:
                - quantity
                - unit
                - rate
                - charged
                - paidFrom
              description: Bandwidth through your own proxy.
            driverNetworkBandwidth:
              type: object
              properties:
                quantity:
                  type: number
                  nullable: true
                  minimum: 0
                  description: >-
                    Amount used in `unit`; 0 for a category the session did not
                    use.
                unit:
                  type: string
                  enum:
                    - MB
                    - hours
                rate:
                  type: object
                  nullable: true
                  properties:
                    cents:
                      type: number
                      minimum: 0
                    dollars:
                      type: number
                      minimum: 0
                    per:
                      type: object
                      properties:
                        quantity:
                          type: number
                          minimum: 0
                          exclusiveMinimum: true
                        unit:
                          type: string
                          enum:
                            - MB
                            - hours
                      required:
                        - quantity
                        - unit
                  required:
                    - cents
                    - dollars
                    - per
                  description: >-
                    Rate billing applied, for example 500 cents per 1,024 MB.
                    Null when the category was not billed for this session or
                    the rate was not recorded.
                charged:
                  allOf:
                    - $ref: '#/components/schemas/Money'
                    - nullable: true
                      description: >-
                        What this category cost at that rate, or null when not
                        known.
                paidFrom:
                  type: object
                  properties:
                    monthlyCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Covered by the plan's monthly included credit.
                    purchasedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from purchased credit.
                    preservedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from preserved credit.
                  required:
                    - monthlyCredit
                    - purchasedCredit
                    - preservedCredit
                  description: >-
                    Where the charge was paid from. Null figures are not known:
                    the session is pending or held, or billing did not record
                    that part.
              required:
                - quantity
                - unit
                - rate
                - charged
                - paidFrom
              description: Bandwidth through the Driver network.
            thirdPartyBandwidth:
              type: object
              properties:
                quantity:
                  type: number
                  nullable: true
                  minimum: 0
                  description: >-
                    Amount used in `unit`; 0 for a category the session did not
                    use.
                unit:
                  type: string
                  enum:
                    - MB
                    - hours
                rate:
                  type: object
                  nullable: true
                  properties:
                    cents:
                      type: number
                      minimum: 0
                    dollars:
                      type: number
                      minimum: 0
                    per:
                      type: object
                      properties:
                        quantity:
                          type: number
                          minimum: 0
                          exclusiveMinimum: true
                        unit:
                          type: string
                          enum:
                            - MB
                            - hours
                      required:
                        - quantity
                        - unit
                  required:
                    - cents
                    - dollars
                    - per
                  description: >-
                    Rate billing applied, for example 500 cents per 1,024 MB.
                    Null when the category was not billed for this session or
                    the rate was not recorded.
                charged:
                  allOf:
                    - $ref: '#/components/schemas/Money'
                    - nullable: true
                      description: >-
                        What this category cost at that rate, or null when not
                        known.
                paidFrom:
                  type: object
                  properties:
                    monthlyCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Covered by the plan's monthly included credit.
                    purchasedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from purchased credit.
                    preservedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from preserved credit.
                  required:
                    - monthlyCredit
                    - purchasedCredit
                    - preservedCredit
                  description: >-
                    Where the charge was paid from. Null figures are not known:
                    the session is pending or held, or billing did not record
                    that part.
              required:
                - quantity
                - unit
                - rate
                - charged
                - paidFrom
              description: Bandwidth through third-party networks.
            platformFeeBandwidth:
              type: object
              properties:
                quantity:
                  type: number
                  nullable: true
                  minimum: 0
                  description: >-
                    Amount used in `unit`; 0 for a category the session did not
                    use.
                unit:
                  type: string
                  enum:
                    - MB
                    - hours
                rate:
                  type: object
                  nullable: true
                  properties:
                    cents:
                      type: number
                      minimum: 0
                    dollars:
                      type: number
                      minimum: 0
                    per:
                      type: object
                      properties:
                        quantity:
                          type: number
                          minimum: 0
                          exclusiveMinimum: true
                        unit:
                          type: string
                          enum:
                            - MB
                            - hours
                      required:
                        - quantity
                        - unit
                  required:
                    - cents
                    - dollars
                    - per
                  description: >-
                    Rate billing applied, for example 500 cents per 1,024 MB.
                    Null when the category was not billed for this session or
                    the rate was not recorded.
                charged:
                  allOf:
                    - $ref: '#/components/schemas/Money'
                    - nullable: true
                      description: >-
                        What this category cost at that rate, or null when not
                        known.
                paidFrom:
                  type: object
                  properties:
                    monthlyCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Covered by the plan's monthly included credit.
                    purchasedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from purchased credit.
                    preservedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from preserved credit.
                  required:
                    - monthlyCredit
                    - purchasedCredit
                    - preservedCredit
                  description: >-
                    Where the charge was paid from. Null figures are not known:
                    the session is pending or held, or billing did not record
                    that part.
              required:
                - quantity
                - unit
                - rate
                - charged
                - paidFrom
              description: The platform fee, charged on all of the session's bandwidth.
            browserHours:
              type: object
              properties:
                quantity:
                  type: number
                  nullable: true
                  minimum: 0
                  description: >-
                    Amount used in `unit`; 0 for a category the session did not
                    use.
                unit:
                  type: string
                  enum:
                    - MB
                    - hours
                rate:
                  type: object
                  nullable: true
                  properties:
                    cents:
                      type: number
                      minimum: 0
                    dollars:
                      type: number
                      minimum: 0
                    per:
                      type: object
                      properties:
                        quantity:
                          type: number
                          minimum: 0
                          exclusiveMinimum: true
                        unit:
                          type: string
                          enum:
                            - MB
                            - hours
                      required:
                        - quantity
                        - unit
                  required:
                    - cents
                    - dollars
                    - per
                  description: >-
                    Rate billing applied, for example 500 cents per 1,024 MB.
                    Null when the category was not billed for this session or
                    the rate was not recorded.
                charged:
                  allOf:
                    - $ref: '#/components/schemas/Money'
                    - nullable: true
                      description: >-
                        What this category cost at that rate, or null when not
                        known.
                paidFrom:
                  type: object
                  properties:
                    monthlyCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Covered by the plan's monthly included credit.
                    purchasedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from purchased credit.
                    preservedCredit:
                      allOf:
                        - $ref: '#/components/schemas/Money'
                        - nullable: true
                          description: Deducted from preserved credit.
                  required:
                    - monthlyCredit
                    - purchasedCredit
                    - preservedCredit
                  description: >-
                    Where the charge was paid from. Null figures are not known:
                    the session is pending or held, or billing did not record
                    that part.
              required:
                - quantity
                - unit
                - rate
                - charged
                - paidFrom
              description: Browser running time.
          required:
            - byopBandwidth
            - driverNetworkBandwidth
            - thirdPartyBandwidth
            - platformFeeBandwidth
            - browserHours
      required:
        - sessionId
        - orgId
        - status
        - statusDetail
        - billedAt
        - browserSeconds
        - network
        - charged
        - paidFrom
        - deductedFromCredit
        - categories
      example:
        sessionId: 9301676abe8b49a98d0331666332ae05
        orgId: org_01KNRFX3833MCT6CX3R9AWR4Z8
        status: settled
        statusDetail: Charged.
        billedAt: '2026-11-27T21:14:00.431Z'
        browserSeconds: 1095.56
        network: driver
        charged:
          cents: 500
          dollars: 5
        paidFrom:
          monthlyCredit:
            cents: 120
            dollars: 1.2
          purchasedCredit:
            cents: 380
            dollars: 3.8
          preservedCredit:
            cents: 0
            dollars: 0
        deductedFromCredit:
          cents: 380
          dollars: 3.8
        categories:
          byopBandwidth:
            quantity: 0
            unit: MB
            rate: null
            charged:
              cents: 0
              dollars: 0
            paidFrom:
              monthlyCredit:
                cents: 0
                dollars: 0
              purchasedCredit:
                cents: 0
                dollars: 0
              preservedCredit:
                cents: 0
                dollars: 0
          driverNetworkBandwidth:
            quantity: 1024
            unit: MB
            rate:
              cents: 500
              dollars: 5
              per:
                quantity: 1024
                unit: MB
            charged:
              cents: 500
              dollars: 5
            paidFrom:
              monthlyCredit:
                cents: 120
                dollars: 1.2
              purchasedCredit:
                cents: 380
                dollars: 3.8
              preservedCredit:
                cents: 0
                dollars: 0
          thirdPartyBandwidth:
            quantity: 0
            unit: MB
            rate: null
            charged:
              cents: 0
              dollars: 0
            paidFrom:
              monthlyCredit:
                cents: 0
                dollars: 0
              purchasedCredit:
                cents: 0
                dollars: 0
              preservedCredit:
                cents: 0
                dollars: 0
          platformFeeBandwidth:
            quantity: 1024
            unit: MB
            rate:
              cents: 0
              dollars: 0
              per:
                quantity: 1024
                unit: MB
            charged:
              cents: 0
              dollars: 0
            paidFrom:
              monthlyCredit:
                cents: 0
                dollars: 0
              purchasedCredit:
                cents: 0
                dollars: 0
              preservedCredit:
                cents: 0
                dollars: 0
          browserHours:
            quantity: 0.30432
            unit: hours
            rate:
              cents: 0
              dollars: 0
              per:
                quantity: 1
                unit: hours
            charged:
              cents: 0
              dollars: 0
            paidFrom:
              monthlyCredit:
                cents: 0
                dollars: 0
              purchasedCredit:
                cents: 0
                dollars: 0
              preservedCredit:
                cents: 0
                dollars: 0
    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.