> ## 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 events

> Retrieve recent events for a specific integration.



## OpenAPI

````yaml /api-reference/openapi.json get /integration/{id}/events
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}/events:
    get:
      tags:
        - Integration
      summary: Get integration events
      description: Retrieve recent events for a specific integration.
      parameters:
        - name: id
          in: path
          description: Integration ID
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: >-
            Maximum number of events to return. Must be a positive integer.
            Defaults to 100 if not provided.
          required: false
          schema:
            type: string
            pattern: ^[0-9]+$
            example: '100'
            default: '100'
        - name: period
          in: query
          description: >-
            Number of days in the past to lookup events. Must be a positive
            number if set. Can be combined with limit to filter both by time
            range and result count.
          required: false
          schema:
            type: string
            pattern: ^[0-9]+(\.?[0-9]+)?$
            example: '30'
        - name: signer
          in: query
          description: >-
            Filter events by signer address. Only returns events triggered by
            this specific wallet address.
          required: false
          schema:
            type: string
            example: 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
        - 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 events retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/IntegrationEvent'
                required:
                  - success
                  - data
        '400':
          description: Invalid integration ID or query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestErrorResponse'
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
components:
  schemas:
    IntegrationEvent:
      type: object
      properties:
        id:
          type: integer
          description: Unique event ID
          example: 12345
        event:
          type: object
          description: >-
            Event object containing event metadata and data. The 'data' property
            contains the specific event type data (WrapEvent, UnwrapEvent, or
            ClaimFeesEvent). Type depends on the 'type' field: '1' = WrapEvent,
            '2' = UnwrapEvent, '3' = ClaimFeesEvent
          properties:
            data:
              oneOf:
                - $ref: '#/components/schemas/WrapEvent'
                - $ref: '#/components/schemas/UnwrapEvent'
                - $ref: '#/components/schemas/ClaimFeesEvent'
          additionalProperties: true
          required:
            - data
        timestamp:
          type: string
          format: date-time
          description: Timestamp when the event occurred
          example: '2024-01-01T00:00:00.000Z'
        transaction_id:
          type: string
          description: Transaction signature/ID
          example: >-
            5j7s8K9mN2pQ3rT4vW5xY6zA7bC8dE9fG0hI1jK2lM3nO4pQ5rS6tU7vW8xY9zA0bC1dE2fG
        type:
          type: string
          description: >-
            Event type: '1' for WrapEvent, '2' for UnwrapEvent, '3' for
            ClaimFeesEvent
          enum:
            - '1'
            - '2'
            - '3'
          example: '1'
        signer:
          type: string
          description: Solana address of the signer who triggered the event
          example: 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
        proxy_state_address:
          type: string
          description: Integration ID (proxy state address)
          example: 9GKYXhPf7XF2yVHRwzVWpeLxRJszp4Jf7zF19hbfE1Ah
      required:
        - id
        - event
        - timestamp
        - transaction_id
        - type
        - signer
        - proxy_state_address
    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
    WrapEvent:
      type: object
      description: >-
        Wrap event data (type '1', discriminator: 1) - occurs when a user
        deposits/mints branded tokens
      properties:
        discriminator:
          type: integer
          enum:
            - 1
          description: Event discriminator for Wrap event
          example: 1
        proxyState:
          type: string
          description: Proxy state address (integration ID)
          example: 9GKYXhPf7XF2yVHRwzVWpeLxRJszp4Jf7zF19hbfE1Ah
        user:
          type: string
          description: User address who performed the wrap
          example: 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
        amountIn:
          type: string
          description: Amount deposited (in smallest units, e.g. lamports)
          example: '1000000000'
        amountOut:
          type: string
          description: Amount of branded tokens received (in smallest units, e.g. lamports)
          example: '1000000000'
      additionalProperties: true
      required:
        - discriminator
        - proxyState
        - user
        - amountIn
        - amountOut
    UnwrapEvent:
      type: object
      description: >-
        Unwrap event data (type '2', discriminator: 2) - occurs when a user
        withdraws/redeems branded tokens
      properties:
        discriminator:
          type: integer
          enum:
            - 2
          description: Event discriminator for Unwrap event
          example: 2
        proxyState:
          type: string
          description: Proxy state address (integration ID)
          example: 9GKYXhPf7XF2yVHRwzVWpeLxRJszp4Jf7zF19hbfE1Ah
        user:
          type: string
          description: User address who performed the unwrap
          example: 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
        amountIn:
          type: string
          description: Amount of branded tokens burned (in smallest units, e.g. lamports)
          example: '500000000'
        amountOut:
          type: string
          description: Amount withdrawn (in smallest units, e.g. lamports)
          example: '500000000'
      additionalProperties: true
      required:
        - discriminator
        - proxyState
        - user
        - amountIn
        - amountOut
    ClaimFeesEvent:
      type: object
      description: >-
        Claim fees event data (type '3', discriminator: 3) - occurs when fees
        are claimed by the integration authority
      properties:
        discriminator:
          type: integer
          enum:
            - 3
          description: Event discriminator for ClaimFees event
          example: 3
        proxyState:
          type: string
          description: Proxy state address (integration ID)
          example: 9GKYXhPf7XF2yVHRwzVWpeLxRJszp4Jf7zF19hbfE1Ah
        authority:
          type: string
          description: Authority address who claimed the fees
          example: 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM
        amount:
          type: string
          description: Amount of fees claimed (in smallest units, e.g. lamports)
          example: '25000000'
      additionalProperties: true
      required:
        - discriminator
        - proxyState
        - authority
        - amount

````

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