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

> **Available on development API only.**

Retrieve deposit and withdrawal events for a senior tranche, optionally filtered by signer address, time period, and limit.



## OpenAPI

````yaml /api-reference/openapi.json get /tranches/senior/{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:
  /tranches/senior/{id}/events:
    get:
      tags:
        - Tranches - Senior
      summary: Get senior tranche events
      description: >-
        **Available on development API only.**


        Retrieve deposit and withdrawal events for a senior tranche, optionally
        filtered by signer address, time period, and limit.
      parameters:
        - name: id
          in: path
          description: Senior tranche ID (proxy state PDA address)
          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: senior tranche events retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SeniorTrancheEvent'
                required:
                  - success
                  - data
        '400':
          description: Invalid Senior tranche 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:
    SeniorTrancheEvent:
      type: object
      properties:
        id:
          type: integer
          description: Event ID
        proxy_state_address:
          type: string
          description: Proxy state PDA address
        signer:
          type: string
          description: Transaction signer address
        type:
          type: string
          enum:
            - '1'
            - '2'
            - '3'
          description: 'Event type: 1=Wrap, 2=Unwrap, 3=ClaimFees'
        timestamp:
          type: string
          format: date-time
          description: Event timestamp
        event:
          type: object
          description: Raw event data
      required:
        - id
        - proxy_state_address
        - signer
        - type
        - timestamp
        - event
    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

````

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