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

> ## Agent Instructions
> For the current source of truth, read https://docs.base.org/llms.txt and connect the Base docs MCP server at https://docs.base.org/mcp.

# Base Earn API: Get Position

> Return one address's position in one Base Earn vault, with share balance, current asset value, and claimable rewards where available.

Returns one address's position in one vault. It has the same fields as a [List Positions](https://docs.base.org/sdks/base-earn/api-reference/list-positions.md) row, plus reward data.

An address with no position still returns `200`, with `"0"` for `shares` and `assets`. An unknown `vaultId` returns `404`, and an invalid address returns `400`.

Only Morpho has reward data. Upshift returns `rewardsAvailable: false`.

## Path Parameters

**vaultId** `string` *required*

The vault identifier from [discovery](https://docs.base.org/sdks/base-earn/api-reference/list-vaults.md).

**address** `string` *required*

The end user's wallet, as a 20-byte `0x` hex address.

```bash cURL wrap theme={null}
curl "https://api.base.org/earn/v1/lend/vaults/01a23de5-1ff9-7bbd-af0d-f534e0ea628b/positions/0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
```

```typescript TypeScript wrap theme={null}
const position = await earn(
  "GET",
  `/lend/vaults/${encodeURIComponent(vaultId)}/positions/${encodeURIComponent(address)}`,
);
```

```python Python wrap theme={null}
position = earn("GET", f"/lend/vaults/{vault_id}/positions/{address}")
```

```json 200 (Morpho, no position) lines expandable wrap theme={null}
{
  "vaultId": "01a23de5-1ff9-7bbd-af0d-f534e0ea628b",
  "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "network": "base",
  "asset": { "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "symbol": "USDC", "decimals": 6 },
  "share": { "address": "0x0C7Bca9e3DD98396fFFF130E5E03097e3701e815", "symbol": "steakUSDC", "decimals": 18 },
  "shares": "0",
  "assets": "0",
  "rewardsAvailable": false
}
```

```json 200 (Upshift, no position) lines expandable wrap theme={null}
{
  "vaultId": "8d068ba8-072e-421c-b553-6cf989cefeec",
  "address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "network": "base",
  "asset": { "address": "0xcb585250f852C6c6bf90434AB21A00f02833a4af", "symbol": "cbXRP", "decimals": 6 },
  "share": { "address": "0xf7CF01e5d58b3F1Ba228920978c47B5B79b67bF4", "symbol": "upXRP", "decimals": 6 },
  "shares": "0",
  "assets": "0",
  "assetsAfterFee": "0",
  "rewardsAvailable": false
}
```

The TypeScript and Python examples use the `earn()` helper from [Call the API](https://docs.base.org/sdks/base-earn/call-the-api.md).

## Response Fields

The response has every field described in [List Positions](https://docs.base.org/sdks/base-earn/api-reference/list-positions.md#response-fields), plus:

**rewardsAvailable** `boolean`

`true` means `claimableRewards` is complete, and a missing `claimableRewards` means the position has no claimable rewards. `false` means reward data is unavailable; do not show zero rewards.

**claimableRewards** `array`

Rewards the address can claim now. Each entry uses the amount format described in [Get Earnings](https://docs.base.org/sdks/base-earn/api-reference/get-earnings.md#amounts).
