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

# Get Vault depositors

> Fetches a list of users and total balances grouped by Vault.



## OpenAPI

````yaml post /markets/lending_vaults/deposits
openapi: 3.1.3
info:
  title: Loopscale API
  version: 1.0.0
servers:
  - url: https://tars.loopscale.com/v1
    description: Loopscale Production Server
security: []
paths:
  /markets/lending_vaults/deposits:
    post:
      summary: Get list of Vault depositors
      description: Fetches a list of users and total balances grouped by Vault.
      operationId: getVaultDepositors
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VaultDepositorRequest'
      responses:
        '200':
          $ref: '#/components/responses/VaultDepositorsResponse'
        '422':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/GeneralError'
components:
  schemas:
    VaultDepositorRequest:
      type: object
      properties:
        vaultAddresses:
          type: array
          items:
            type: string
          description: List of vaults to query by, must include this or principalMints.
        principalMints:
          type: array
          items:
            type: string
          description: >-
            List of principal tokens to query by, must include this or
            vaultAddresses.
      required: []
    VaultDepositor:
      type: object
      properties:
        vaultAddress:
          type: string
          description: The Vault the deposits are mapped to
        userDeposits:
          type: array
          items:
            type: object
            properties:
              userAddress:
                type: string
              amountSupplied:
                type: string
          description: Deposits per user to corresponding Vault
  responses:
    VaultDepositorsResponse:
      description: A list of Vaults and an array of users and their balances in the Vault
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/VaultDepositor'
          examples:
            example:
              value:
                - vaultAddress: AXanCP4dJHtWd7zY4X7nwxN5t5Gysfy2uG3XTxSmXdaB
                  userDeposits:
                    - userAddress: 2fyUG8mSGgCkh9jDaSHToN4dPrp5x3Bb7boETVMRHR6h
                      amountSupplied: 41214262
    BadRequest:
      description: Bad Request
      content:
        text/plain:
          schema:
            type: string
            example: 'Something went wrong: You have an error in your SQL syntax.'
    GeneralError:
      description: General Server Error
      content:
        text/plain:
          schema:
            type: string
            example: >-
              Failed to deserialize the JSON body into the target type: missing
              field `mints` at line 1 column 1.

````