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

# Get integration statistics

> Retrieve statistics for a specific integration



## OpenAPI

````yaml /api-reference/openapi.json get /integration/{id}/stats
openapi: 3.0.3
info:
  title: Reflect API
  description: >-
    Interact with the Reflect infrastructure via API. Retrieve stablecoin and
    protocol stats. Generate transactions for minting and redeeming stablecoins.
    Manage integrations and issue whitelabel stablecoins.


    ## Rate Limiting

    - **Unauthenticated users**: 100 requests per minute

    - **Authenticated integrators**: 500 requests per minute


    ## Authentication

    To access higher rate limits, include your API key in the `X-API-Key`
    header. API keys can be obtained through the integration management
    endpoints.
  version: 1.0.0
  contact:
    name: Reflect
    url: https://reflect.money
servers:
  - url: https://prod.api.reflect.money
    description: Production environment
  - url: https://dev.api.reflect.money
    description: Development environment (includes /tranches endpoints)
security: []
tags:
  - name: Health
    description: Health check endpoints
  - name: Stablecoin
    description: Reflect stablecoins interaction endpoints.
  - name: Integration
    description: Custom integration management endpoints.
  - name: Stats
    description: Protocol statistics endpoints
  - name: Events
    description: Protocol events endpoints
  - name: Tranches - Senior
    description: >-
      Senior tranche endpoints (development API only). Deposit and redeem
      underlying stablecoins, query tranche statistics and exchange rates.
  - name: Tranches - Junior
    description: >-
      Junior tranche endpoints (development API only). Deposit and withdraw
      assets, manage cooldowns, query tranche statistics and exchange rates.
  - name: Tranches
    description: General tranche endpoints (development API only).
paths:
  /integration/{id}/stats:
    get:
      tags:
        - Integration
      summary: Get integration statistics
      description: Retrieve statistics for a specific integration
      parameters:
        - name: id
          in: path
          description: Integration ID
          required: true
          schema:
            type: string
        - name: cluster
          in: query
          description: Solana cluster to use (defaults to mainnet)
          required: false
          schema:
            type: string
            enum:
              - mainnet
              - devnet
            default: mainnet
      responses:
        '200':
          description: Integration statistics retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationStatsResponse'
        '400':
          description: Invalid integration ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
      security:
        - authenticatedIntegrator: []
components:
  schemas:
    IntegrationStatsResponse:
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            data:
              type: object
              properties:
                stablecoin:
                  type: string
                  description: Branded mint address for this integration
                  example: 6RiHbTkMvYmr39GQArt7siykWDghC8uMcwHAWkZLiQ3i
                timestamp:
                  type: string
                  format: date-time
                  description: Timestamp of the latest statistics snapshot
                  example: '2024-01-01T00:00:00.000Z'
                supply:
                  type: string
                  description: >-
                    Total supply of the branded stablecoin (in smallest units,
                    e.g. lamports)
                  example: '1000000000'
                holders:
                  type: integer
                  description: Total number of holders
                  example: 1500
                principal:
                  type: string
                  description: Total principal amount deposited (in smallest units)
                  example: '950000000'
                yield:
                  type: string
                  description: Total yield generated (in smallest units)
                  example: '50000000'
                volume:
                  type: string
                  description: >-
                    Cumulative transaction volume for this integration (in
                    smallest units)
                  example: '5000000000'
                exchange_rate:
                  type: string
                  description: >-
                    Current exchange rate between the branded token and the
                    underlying stablecoin, represented as a bigint string with 6
                    decimal places of precision (e.g. 1000321 represents
                    1.000321)
                  example: '1000321'
                totalRevenue:
                  type: string
                  description: >-
                    Total revenue generated for this integration (in smallest
                    units)
                  example: '25000000'
                apy_bps:
                  type: number
                  description: >-
                    Annual Percentage Yield in basis points (bps). Represents
                    the current APY for USDC+ stablecoin.
                  example: 450
                apy_bps_7d:
                  type: integer
                  nullable: true
                  description: 7-day trailing APY in basis points
                  example: 430
              required:
                - stablecoin
                - timestamp
                - supply
                - holders
                - principal
                - yield
                - volume
                - exchange_rate
                - totalRevenue
                - apy_bps
          required:
            - data
    BadRequestErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the request was successful
          example: false
        message:
          type: string
          description: Error message describing what went wrong with the request
          example: 'Invalid request data: depositAmount must be positive'
      required:
        - success
        - message
    InternalServerErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the request was successful
          example: false
        message:
          type: string
          description: Error message describing the server error
          example: Internal server error
      required:
        - success
        - message
    BaseResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the request was successful
      required:
        - success
  securitySchemes:
    authenticatedIntegrator:
      type: apiKey
      in: header
      name: Reflect-API-Key
      description: API key for integrators to access integration-specific endpoints.

````

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