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

# Get vault depositor analytics

> Returns a paginated list of all depositors with estimated balance, activity status, and transaction history. Status is computed from idleThresholdDays and minBalance thresholds (configurable per-user via VaultUserConfig, overridable by query params). NOTE: v1 only supports single-asset vaults; multi-asset vaults default to assets[0].



## OpenAPI

````yaml GET /vault/{address}/depositors
openapi: 3.0.0
info:
  title: DeFindex API
  description: >-
    Yield infrastructure for neobanks, fintechs and wallets.


    **Base URL:** `https://api.defindex.io`. Every route takes
    `?network=mainnet` (the default) or `?network=testnet`.


    **Auth:** send your API key as `Authorization: Bearer sk_...` (the console
    uses the JWT access token from `POST /login` the same way). Each operation's
    `security` says whether it needs one; `security: []` means it is public.

    - `401`: no credential, or an invalid API key. The body has a `code`
    (`MISSING_CREDENTIAL` or `INVALID_API_KEY`) and a `registerUrl` where you
    get a key, and `WWW-Authenticate` is set.

    - `403`: an expired or invalid JWT, or a valid credential without the
    required role.


    **Rate limits:** a token bucket per account (requests without a key are
    tracked by IP). Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining`
    and `X-RateLimit-Reset` (seconds until the bucket is full). A `429` also
    carries `Retry-After` and `retryAfter` in the body.


    | Tier | Burst | Sustained |

    |---|---|---|

    | FREE | 5 | 1/s |

    | STARTER | 20 | 10/s |

    | PROFESSIONAL | 100 | 50/s |

    | BUSINESS | 200 | 100/s |


    **Units:**

    - Amounts are integers in the asset's smallest unit (7 decimals for every
    asset DeFindex lists today: 1 USDC = `10000000`). Responses send them as
    strings; request bodies take JSON integers.

    - Vault shares (dfTokens) are not underlying: `GET /vault/{address}/balance`
    returns both. The share price rises, so the underlying value of a position
    is not what was deposited.

    - Multi-asset vaults take one amount per vault asset, in the order of
    `assets` in `GET /vault/{address}`.

    - Vault `apy` is a percentage (`8.75` = 8.75%). `/strategies`
    `apy7d`/`apy30d`/`apyAllTime` are fractions (`0.0641` = 6.41%).

    - Fees are basis points (`10000` = 100%).


    **Writes never move funds by themselves.** Each write returns an unsigned
    transaction (`xdr`) for the `caller`. Sign it and submit it with `POST
    /send` (or your own RPC). `POST /send` is idempotent: resubmitting the same
    signed XDR returns the original result.
  version: 1.0.0
  contact: {}
  x-logo:
    url: https://links.paltalabs.io/defindex-full.svg
    backgroundColor: '#0e0e0e'
    altText: DeFindex Logo
    href: https://defindex.io
servers: []
security: []
tags: []
paths:
  /vault/{address}/depositors:
    get:
      tags:
        - Vault
      summary: Get vault depositor analytics
      description: >-
        Returns a paginated list of all depositors with estimated balance,
        activity status, and transaction history. Status is computed from
        idleThresholdDays and minBalance thresholds (configurable per-user via
        VaultUserConfig, overridable by query params). NOTE: v1 only supports
        single-asset vaults; multi-asset vaults default to assets[0].
      operationId: VaultController_getDepositors
      parameters:
        - name: address
          required: true
          in: path
          description: Stellar address of the vault contract
          schema:
            example: CBNKCU3HGFKHFOF7JTGXQCNKE3G3DXS5RDBQUKQMIIECYKXPIOUGB2S3
            type: string
        - name: network
          required: false
          in: query
          description: Stellar network (testnet or mainnet). Defaults to mainnet.
          schema:
            enum:
              - testnet
              - mainnet
            type: string
        - name: limit
          required: false
          in: query
          description: Results per page (max 100)
          schema:
            default: 25
            type: number
        - name: offset
          required: false
          in: query
          schema:
            default: 0
            type: number
        - name: sortBy
          required: false
          in: query
          schema:
            default: balance
            type: string
            enum:
              - balance
              - lastActivityAt
              - totalDeposited
              - walletAddress
        - name: sortOrder
          required: false
          in: query
          schema:
            default: desc
            type: string
            enum:
              - asc
              - desc
        - name: idleThresholdDays
          required: false
          in: query
          description: >-
            Days without activity before a depositor is classified as idle
            (default 30)
          schema:
            type: number
        - name: minBalance
          required: false
          in: query
          description: >-
            Minimum balance in stroops of the resolved asset. Depositors below
            this are inactive. Example: 1 USDC (7 decimals) = 10_000_000
          schema:
            type: number
        - name: status
          required: false
          in: query
          description: >-
            Filter depositors by status. Filtering is applied before pagination
            so total reflects only the matching set. Aggregates remain
            vault-wide regardless.
          schema:
            type: string
            enum:
              - active
              - idle
              - inactive
      responses:
        '200':
          description: Depositor analytics returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDepositorsResponseDto'
              example:
                vaultAddress: CBNKCU3HGFKHFOF7JTGXQCNKE3G3DXS5RDBQUKQMIIECYKXPIOUGB2S3
                network: mainnet
                limit: 50
                offset: 0
                total: 1
                idleThresholdDays: 30
                depositors:
                  - walletAddress: GBMZYL5BVFU3HQLNRM4AC4GTRP553KL2THIZDEZ4RCOIHJH7CK4JKY5M
                    status: active
                    estimatedValue: '82342953245'
                    resolvedAsset: CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75
                    lastActivityAt: '2026-10-20T14:03:11.000Z'
                    totalDeposited: '80000000000'
                    totalWithdrawn: '0'
                aggregates:
                  assets:
                    - asset: CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75
                      assetSymbol: USDC
                      totalBalance: '82342953245'
                      activeBalance: '82342953245'
                      idleBalance: '0'
                      inactiveBalance: '0'
                  activeDepositors: 1
                  idleDepositors: 0
                  inactiveDepositors: 0
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            x-correlation-id:
              $ref: '#/components/headers/x-correlation-id'
        '400':
          description: Bad request - invalid parameters
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            x-correlation-id:
              $ref: '#/components/headers/x-correlation-id'
        '401':
          description: >-
            No credential, an invalid API key, or a valid JWT of a disabled
            account. Except for the disabled account, the answer carries
            `WWW-Authenticate` and a `registerUrl`.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            x-correlation-id:
              $ref: '#/components/headers/x-correlation-id'
        '403':
          description: Forbidden - caller is not authorized for this operation
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            x-correlation-id:
              $ref: '#/components/headers/x-correlation-id'
        '429':
          description: >-
            Rate limit exceeded for your tier. Wait `Retry-After` seconds and
            retry.
          headers:
            Retry-After:
              description: Seconds until the next request is allowed.
              schema:
                type: integer
                example: 1
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            x-correlation-id:
              $ref: '#/components/headers/x-correlation-id'
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: integer
                    example: 429
                  message:
                    type: string
                    example: Rate limit exceeded
                  error:
                    type: string
                    example: Too Many Requests
                  retryAfter:
                    type: integer
                    example: 1
              example:
                statusCode: 429
                message: Rate limit exceeded
                error: Too Many Requests
                retryAfter: 1
      security:
        - bearer: []
components:
  schemas:
    GetDepositorsResponseDto:
      type: object
      properties:
        vaultAddress:
          type: string
        network:
          type: string
        limit:
          type: number
        offset:
          type: number
        total:
          type: number
        idleThresholdDays:
          type: number
        depositors:
          type: array
          items:
            $ref: '#/components/schemas/DepositorItemDto'
        aggregates:
          $ref: '#/components/schemas/DepositorAggregatesDto'
      required:
        - vaultAddress
        - network
        - limit
        - offset
        - total
        - idleThresholdDays
        - depositors
        - aggregates
    DepositorItemDto:
      type: object
      properties:
        walletAddress:
          type: string
          description: Stellar wallet address
        status:
          type: string
          enum:
            - active
            - idle
            - inactive
        estimatedValue:
          type: string
          description: Estimated value in stroops of resolvedAsset
        resolvedAsset:
          type: string
          description: Asset address used for estimatedValue computation
        lastActivityAt:
          type: string
          nullable: true
          description: ISO 8601 — null if never directly deposited/withdrew
        totalDeposited:
          type: string
          description: Lifetime total deposited in stroops of resolvedAsset
        totalWithdrawn:
          type: string
          description: Lifetime total withdrawn in stroops of resolvedAsset
      required:
        - walletAddress
        - status
        - estimatedValue
        - resolvedAsset
        - lastActivityAt
        - totalDeposited
        - totalWithdrawn
    DepositorAggregatesDto:
      type: object
      properties:
        assets:
          type: array
          items:
            $ref: '#/components/schemas/DepositorAssetAggregatesDto'
        activeDepositors:
          type: number
        idleDepositors:
          type: number
        inactiveDepositors:
          type: number
      required:
        - assets
        - activeDepositors
        - idleDepositors
        - inactiveDepositors
    DepositorAssetAggregatesDto:
      type: object
      properties:
        asset:
          type: string
          description: Asset contract address
        assetSymbol:
          type: string
          description: Asset display symbol
        totalBalance:
          type: string
          description: Total balance across all depositors (stroops)
        activeBalance:
          type: string
          description: Balance of active depositors (stroops)
        idleBalance:
          type: string
          description: Balance of idle depositors (stroops)
        inactiveBalance:
          type: string
          description: Balance of inactive depositors (stroops)
      required:
        - asset
        - assetSymbol
        - totalBalance
        - activeBalance
        - idleBalance
        - inactiveBalance
  headers:
    X-RateLimit-Limit:
      description: 'Bucket size for your tier: the most requests you can burst.'
      schema:
        type: integer
        example: 5
    X-RateLimit-Remaining:
      description: Requests left in the bucket right now.
      schema:
        type: integer
        example: 4
    X-RateLimit-Reset:
      description: >-
        Seconds (not a timestamp) until the bucket is full again. On a 429,
        seconds until the next request is allowed.
      schema:
        type: integer
        example: 1
    x-correlation-id:
      description: >-
        Request ID. Send your own `x-correlation-id` to have it echoed back;
        quote it when you report a problem.
      schema:
        type: string
        example: 454a42d5-0166-40fe-a4ad-32e77aa44962
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

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