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

# List an activity's settled charges

> Lists individual settled charges for one billed runtime lease or private setup attempt within the selected period and filters. Foreign or unknown work returns an empty list.



## OpenAPI

````yaml https://raw.githubusercontent.com/agentsfleet/agentsfleet/main/public/openapi.json get /v1/tenants/me/billing/activities/{activity_id}/charges
openapi: 3.1.0
info:
  title: agentsfleet API
  description: API for managing workspaces, fleets, triggers, and runs.
  contact:
    name: agentsfleet
    url: https://agentsfleet.net
  license:
    name: MIT
    identifier: MIT
  version: 1.0.0
servers:
  - url: https://api.agentsfleet.net
    description: Production
security: []
paths:
  /v1/tenants/me/billing/activities/{activity_id}/charges:
    get:
      tags:
        - Billing
      summary: List an activity's settled charges
      description: >-
        Lists individual settled charges for one billed runtime lease or private
        setup attempt within the selected period and filters. Foreign or unknown
        work returns an empty list.
      operationId: get_tenant_billing_activity_charges
      parameters:
        - name: activity_id
          in: path
          description: Opaque billed activity identifier
          required: true
          schema:
            type: string
        - name: activity_type
          in: query
          description: runtime or setup, required
          required: true
          schema:
            type: string
        - name: period
          in: query
          description: month (default) or today, in Coordinated Universal Time (UTC).
          required: false
          schema:
            type: string
        - name: fleet_id
          in: query
          description: Exact runtime fleet identifier.
          required: false
          schema:
            type: string
        - name: model
          in: query
          description: Exact recorded model identifier.
          required: false
          schema:
            type: string
        - name: through_at
          in: query
          description: >-
            Inclusive cutoff with millisecond precision; defaults to now. Use
            the report timestamp to preserve its view.
          required: false
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          description: 'Page size: 1 to 100, default 50.'
          required: false
          schema:
            type: integer
            format: int32
            minimum: 0
        - name: starting_after
          in: query
          description: Opaque continuation for the same query and page size.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingPage_BillingCharge'
        '400':
          description: The request is invalid
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '401':
          description: Authentication is missing, invalid, or not accepted by this endpoint
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '403':
          description: You do not have permission for this action
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '429':
          description: A request or capacity limit has been reached
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '500':
          description: An internal server error occurred
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
        '503':
          description: A required service is unavailable
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemBody'
      security:
        - BearerAuth: []
components:
  schemas:
    BillingPage_BillingCharge:
      type: object
      description: A bounded list with the standard envelope.
      required:
        - items
      properties:
        items:
          type: array
          items:
            type: object
            description: One physically recorded charge in a billed activity.
            required:
              - id
              - sequence
              - model
              - posture
              - charged_nanos
              - input_tokens
              - output_tokens
              - runtime_ms
              - unpriced_tokens
              - requested_at
              - settled_at
            properties:
              charged_nanos:
                $ref: '#/components/schemas/Nanos'
                description: Actual combined credit charge, as integer nanodollar text.
              id:
                type: string
                description: Opaque ledger row identifier.
              input_tokens:
                type: integer
                format: int64
                description: Recorded input tokens.
              model:
                type: string
                description: Exact model identifier.
              output_tokens:
                type: integer
                format: int64
                description: Recorded output tokens.
              posture:
                type: string
                description: Whether the platform or customer supplied the provider key.
              requested_at:
                type: string
                format: date-time
                description: When the model request or runtime piece began.
              runtime_ms:
                type: integer
                format: int64
                description: Recorded runtime in milliseconds.
              sequence:
                type: integer
                format: int64
                description: Position within the activity.
              settled_at:
                type: string
                format: date-time
                description: When the charge settled.
              unpriced_tokens:
                type: integer
                format: int64
                description: Tokens without a platform price.
          description: Items on this page.
        next_cursor:
          type:
            - string
            - 'null'
          description: Continue with `starting_after`, or null on the final page.
        total:
          type:
            - integer
            - 'null'
          format: int64
          description: Full matching count, or null when it was not computed.
    ProblemBody:
      type: object
      description: The body every refusal carries, under `application/problem+json`.
      required:
        - docs_uri
        - title
        - detail
        - error_code
        - request_id
      properties:
        action_id:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the action the gate held.'
        current_state:
          type:
            - string
            - 'null'
          description: 'On a 409 only: the state that forbade the transition.'
        detail:
          type: string
          description: One sentence on what was refused and why.
        docs_uri:
          type: string
          description: Where the error code is documented.
        error_code:
          type: string
          description: The registry code, stable across releases.
        etag:
          type:
            - string
            - 'null'
          description: >-
            On a 412 only: the resource's current entity tag, to refetch and
            retry.
        gate_id:
          type:
            - string
            - 'null'
          description: 'On an answered approval gate''s 409 only: the gate that was answered.'
        outcome:
          type:
            - string
            - 'null'
          description: 'On that 409 only: the answer that stands.'
        request_id:
          type: string
          description: The request this refusal answers, for support.
        resolved_at:
          type:
            - string
            - 'null'
          format: date-time
          description: 'On that 409 only: when the standing answer was given.'
        resolved_by:
          type:
            - string
            - 'null'
          description: 'On that 409 only: who gave it.'
        title:
          type: string
          description: A short name for the refusal, safe to show a person.
        user_message:
          type:
            - string
            - 'null'
          description: A curated sentence for end users, where the code has one.
    Nanos:
      type: string
      description: A whole number of nanos (10⁻⁹ US dollars) as a decimal string.
      pattern: ^(0|[1-9][0-9]*)$
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Send a dashboard session token, an account API key (`agt_t`), or a
        command-line credential (`afc_`) as a Bearer token. Each endpoint lists
        accepted credential types.

````

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