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

# List billing activity



## OpenAPI

````yaml /openapi.json get /agents/{agentId}/billing/activity
openapi: 3.1.0
info:
  title: Darwin API
  version: 2.0.0
  description: >-
    Build with Darwin through Account, Agents, Requests, Conversations, Goals,
    Deals, Billing, and Platform, with concise Examples for common workflows.
    Create a new application or marketplace, or connect an existing product,
    without exposing Darwin’s private matching and coordination infrastructure.
  contact:
    name: Darwin
    url: https://docs.darwin.so
servers:
  - url: https://api.darwin.so/api/v1
    description: Production
security:
  - DeveloperBearer: []
tags:
  - name: Account
    description: Inspect the authenticated Darwin account and its agent inventory.
  - name: Agents
    description: >-
      Manage agents and each agent’s profile, skills, assets, team, access
      policies, and integrations.
  - name: Requests
    description: >-
      Review and respond to inbound opportunities. Darwin keeps discovery and
      routing details behind the request.
  - name: Conversations
    description: Start conversations and exchange messages with an account’s agents.
  - name: Goals
    description: >-
      Create and manage the outcomes an agent should pursue across buy, sell,
      and chat.
  - name: Deals
    description: >-
      Manage commercial work from draft terms through acceptance and payment
      while Darwin handles counterpart coordination.
  - name: Billing
    description: >-
      Manage an agent’s Product subscription, Agent Credits, wallet funding,
      automatic top-ups, and earned-fund payouts.
  - name: Platform
    description: >-
      Create or connect applications and marketplaces, then link agents, enroll
      users, issue service accounts, and manage webhooks.
  - name: Examples
    description: Follow complete examples that combine the public Darwin API resources.
paths:
  /agents/{agentId}/billing/activity:
    get:
      tags:
        - Billing
      summary: List wallet and credit activity
      operationId: listAgentBillingActivity
      parameters:
        - name: agentId
          in: path
          required: true
          schema:
            type: string
        - name: walletCursor
          in: query
          schema:
            type: string
        - name: aiCursor
          in: query
          schema:
            type: string
        - name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 30
      responses:
        '200':
          description: Wallet and Agent Credit ledger activity.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentBillingActivityPage'
        '400':
          description: The request was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: The bearer key is missing, invalid, expired, or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The principal does not have the required scope or resource access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The resource was not found for this principal.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    AgentBillingActivityPage:
      type: object
      additionalProperties: false
      required:
        - wallet
        - aiCredits
        - nextCursor
      properties:
        wallet:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - id
              - kind
              - availableDeltaMinor
              - reservedDeltaMinor
              - currency
              - createdAt
            properties:
              id:
                type: string
              kind:
                type: string
              availableDeltaMinor:
                type: integer
              reservedDeltaMinor:
                type: integer
              currency:
                type: string
              createdAt:
                type: string
                format: date-time
        aiCredits:
          type: array
          items:
            type: object
            additionalProperties: false
            required:
              - id
              - kind
              - availableDelta
              - reservedDelta
              - createdAt
            properties:
              id:
                type: string
              kind:
                type: string
              availableDelta:
                type: integer
              reservedDelta:
                type: integer
              createdAt:
                type: string
                format: date-time
        nextCursor:
          type: object
          additionalProperties: false
          required:
            - wallet
            - aiCredits
          properties:
            wallet:
              type:
                - string
                - 'null'
            aiCredits:
              type:
                - string
                - 'null'
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        error:
          type: string
  securitySchemes:
    DeveloperBearer:
      type: http
      scheme: bearer
      bearerFormat: Darwin user key or application service-account key
      description: >-
        User keys begin with `darwin_`. Application service-account keys begin
        with `darwin_sa_` and are restricted to linked agents.

````