---
title: "Get User Account Data"
method: GET
path: "/defi/v1/lendborrow/getuseraccountdata"
tags: ["lendborrow"]
---

# Get User Account Data

`GET /defi/v1/lendborrow/getuseraccountdata`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/lendborrow/getuseraccountdata`
- Auth: API key in header `X-API-Key`

Provide detailed account metrics for a user, including available amounts for repayment, borrowing, and withdrawal, as well as the health factor—a key indicator of account risk. This endpoint is crucial for monitoring your overall position and managing risk within the lending protocol.

> 💡 
**Compute Unit Value:** `110` (Fixed)

## Query parameters

- `lendborrowId` '1000' | '1003' | '1005' | '1200' | '1208' | '1203' | '1204' | '1205' | '1206' | '1207' | '1100' | '1300' | '1302' | '1400' | '1401' | '1402' | '1403' | '1404': The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.
- `asset` string, required: Asset value matching the market. Defaults to USDC if market is not provided.
- `address` string, required: Public address of the sender.
- `interestRateMode` string, required: Interest rate mode as defined by Aave. Default is 1.
- `vsCurrencies` string: A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.
- `useCustomVaults` boolean: A boolean flag to scope the API request. If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools.
- `market` string: Asset market, such as USDC or WETH. Defaults to USDC if not provided.
- `marketId` string, required: Specifies the market Id of any market in Morpho.

## Response `200`

Successful response

- object
  - `status` number: Numeric status code indicating success or failure of the API call
  - `msg` string: Human-readable message describing the API result or error
  - `data` object
    - `tokenAddress` string: Blockchain address of a token contract
    - `loanToken` string
    - `collateralToken` string
    - `repayAmount` string
    - `borrowAmount` string
    - `withdrawAmount` string
    - `borrowErrorMessage` string
    - `healthFactor` string, required
    - `isHealthy` boolean
    - `prices` object, required

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
