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

# Get Billing Activities

> Get billing activities for the active org.

The org-scoped RPC only emits execution rows. Credit purchases stay
personal (top-ups + invoices are unchanged for now) and appear via
``/invoices`` instead.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v2/external/billing/activities
openapi: 3.1.0
info:
  title: Lyceum Cloud API
  version: 0.1.0
servers:
  - url: https://api.lyceum.technology
    description: Production
security:
  - bearerAuth: []
paths:
  /api/v2/external/billing/activities:
    get:
      tags:
        - Billing
      summary: Get Billing Activities
      description: |-
        Get billing activities for the active org.

        The org-scoped RPC only emits execution rows. Credit purchases stay
        personal (top-ups + invoices are unchanged for now) and appear via
        ``/invoices`` instead.
      operationId: get_billing_activities_api_v2_external_billing_activities_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 10
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingHistory'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BillingHistory:
      properties:
        activities:
          items:
            $ref: '#/components/schemas/BillingActivity'
          type: array
          title: Activities
        total_activities:
          type: integer
          title: Total Activities
      type: object
      required:
        - activities
        - total_activities
      title: BillingHistory
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BillingActivity:
      properties:
        activity_id:
          type: string
          title: Activity Id
        created_at:
          type: string
          format: date-time
          title: Created At
        type:
          type: string
          title: Type
        amount:
          anyOf:
            - type: number
            - type: 'null'
          title: Amount
        description:
          type: string
          title: Description
        status:
          type: string
          title: Status
        hardware_profile:
          anyOf:
            - type: string
            - type: 'null'
          title: Hardware Profile
        croesus_billed:
          anyOf:
            - type: number
            - type: 'null'
          title: Croesus Billed
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        org_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Org Id
      type: object
      required:
        - activity_id
        - created_at
        - type
        - amount
        - description
        - status
      title: BillingActivity
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass an API key (prefixed `lk_`) or a JWT access token as a bearer
        token. Generate API keys in the dashboard at
        https://dashboard.lyceum.technology/api-keys.

````