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

# Retrieve current billing period usage counters against plan quotas.



## OpenAPI

````yaml /openapi/v1.yaml get /billing/usage
openapi: 3.1.0
info:
  title: Attexra API
  version: 0.1.0
  description: >-
    Identity, scoped authorization, and auditable action evidence for autonomous
    agents. The MVP is non-custodial and does not execute payments.
servers:
  - url: /v1
    description: Current API server
  - url: https://api.attexra.tech/v1
    description: Production example
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /billing/usage:
    get:
      summary: Retrieve current billing period usage counters against plan quotas.
      operationId: getBillingUsage
      responses:
        '200':
          description: Aggregated billing period usage and plan details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingUsageReport'
components:
  schemas:
    BillingUsageReport:
      type: object
      required:
        - subscription
        - usage
      properties:
        subscription:
          $ref: '#/components/schemas/BillingSubscription'
        usage:
          $ref: '#/components/schemas/BillingUsageSummary'
    BillingSubscription:
      type: object
      required:
        - id
        - organisationId
        - planId
        - plan
        - status
        - provider
        - paymentMethodType
        - autoRenew
        - billingInterval
        - currentPeriodStart
        - currentPeriodEnd
        - cancelAtPeriodEnd
      properties:
        id:
          type: string
          format: uuid
        organisationId:
          type: string
          format: uuid
        planId:
          type: string
          format: uuid
        plan:
          $ref: '#/components/schemas/BillingPlan'
        status:
          type: string
          enum:
            - active
            - trialing
            - past_due
            - canceled
            - expired
        provider:
          type: string
        paymentMethodType:
          type: string
        autoRenew:
          type: boolean
        billingInterval:
          type: string
          enum:
            - monthly
            - annual
            - custom
        currentPeriodStart:
          type: string
          format: date-time
        currentPeriodEnd:
          type: string
          format: date-time
        cancelAtPeriodEnd:
          type: boolean
        externalCustomerId:
          type: string
          nullable: true
        externalSubscriptionId:
          type: string
          nullable: true
    BillingUsageSummary:
      type: object
      required:
        - periodStart
        - periodEnd
        - registeredAgents
        - authorizationDecisions
        - evidenceEvents
        - projects
        - metrics
      properties:
        periodStart:
          type: string
          format: date-time
        periodEnd:
          type: string
          format: date-time
        registeredAgents:
          $ref: '#/components/schemas/BillingMetricUsage'
        authorizationDecisions:
          $ref: '#/components/schemas/BillingMetricUsage'
        evidenceEvents:
          $ref: '#/components/schemas/BillingMetricUsage'
        projects:
          $ref: '#/components/schemas/BillingMetricUsage'
        metrics:
          type: array
          items:
            $ref: '#/components/schemas/BillingMetricUsage'
    BillingPlan:
      type: object
      required:
        - id
        - name
        - slug
        - description
        - currency
        - isActive
        - entitlements
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        slug:
          type: string
        description:
          type: string
        monthlyPrice:
          type: integer
          nullable: true
        currency:
          type: string
        isActive:
          type: boolean
        sortOrder:
          type: integer
        entitlements:
          type: object
          additionalProperties:
            type: string
    BillingMetricUsage:
      type: object
      required:
        - metric
        - used
      properties:
        metric:
          type: string
        used:
          type: integer
        limit:
          type: integer
          nullable: true
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Console session token (also supported via attexra_session HttpOnly
        cookie).

````

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