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

# Get API Usage Stats

> Get API usage statistics and rate limits per tenant

Get API usage statistics and rate limits per tenant.

<ParamField status="200" type="UsageResponse">
  <ParamField name="period" type="string">
    Reporting period
  </ParamField>

  <ParamField name="totalRequests" type="integer">
    Total API requests
  </ParamField>

  <ParamField name="requestsByEndpoint" type="object">
    Requests grouped by endpoint
  </ParamField>

  <ParamField name="rateLimits" type="object">
    Rate limit information
  </ParamField>
</ParamField>

### Reference Documentation

<Info>
  For more information on administration functions, please refer to:

  * Pages 557-559 of "Functional\_Requirements\_V18 FINAL": [https://belli.sg/4nxxCDR](https://belli.sg/4nxxCDR)
</Info>


## OpenAPI

````yaml GET /api/usage
openapi: 3.0.3
info:
  title: Mock API
  version: 1.0.0
  description: >-
    Mock OpenAPI spec for QR API Service. All endpoints require API key
    authentication via 'Authorization: Bearer <token>' or 'x-api-key: <token>'
    headers.
servers:
  - url: https://1a557de0-701c-477d-bedd-433520441dae.mock.pstmn.io
    description: Production server
security:
  - ApiKeyAuth: []
  - ApiKeyHeader: []
tags:
  - name: auth-v1
    description: Authentication and user management
  - name: reference-data-v1
    description: Reference data and master data
  - name: flights-v1
    description: Flight schedules and capacity
  - name: quotes-v1
    description: Quotation and pricing
  - name: awb-stock-v1
    description: AWB Stock Management
  - name: bookings-v1
    description: Booking management
  - name: shipments-v1
    description: Shipment documents and tracking
  - name: compliance-v1
    description: Compliance and safety declarations
  - name: operations-v1
    description: Operational events and manifests
  - name: webhooks-v1
    description: Webhook management
  - name: admin-v1
    description: Administrative and audit functions
  - name: qr-exp-cgo-ext-availability-v1
    description: Legacy availability service
  - name: qr-exp-cgo-ext-booking-v1
    description: Legacy booking service
  - name: qr-exp-cgo-ext-flight-schedules-v1
    description: Legacy flight schedules service
  - name: qr-exp-cgo-shipments-v1
    description: Legacy shipments service
  - name: qr-exp-cgo-stock-v1
    description: Legacy stock service
  - name: qr-exp-cgo-tables-v1
    description: Legacy table data service
paths:
  /api/usage:
    get:
      tags:
        - admin-v1
      summary: Get API usage stats
      description: Get API usage statistics and rate limits per tenant
      parameters:
        - name: period
          in: query
          schema:
            type: string
            default: current_month
          description: Reporting period
        - name: groupBy
          in: query
          schema:
            type: string
            default: endpoint
          description: Group by endpoint or other criteria
      responses:
        '200':
          description: Usage statistics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
components:
  schemas:
    UsageResponse:
      type: object
      properties:
        period:
          type: string
          example: current_month
        totalRequests:
          type: integer
          example: 15000
        requestsByEndpoint:
          type: object
          additionalProperties:
            type: integer
          example:
            /api/quotes: 500
            /api/bookings: 300
        rateLimits:
          type: object
          properties:
            requestsPerMinute:
              type: integer
              example: 60
            requestsPerHour:
              type: integer
              example: 1000
            requestsPerDay:
              type: integer
              example: 10000
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````