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

# Account Summary

> GET /v1/accounts/:accountId/summary — The figures the client sees in its Earn portal

> [!NOTE]
>
> **Endpoint:** `GET https://api.rebelfi.io/v1/accounts/:accountId/summary`

The [client account](https://docs.rebelfi.io/docs/guides/client-accounts.md)'s figures, from the same read the client's RebelFi Earn portal shows:
totals per token, the 30-day APY, the earn wallets with their balances, and every position. Use it to show your client
the same numbers RebelFi shows them.

* Each position row is the row [List Allocations](https://docs.rebelfi.io/docs/api-reference/allocations/list.md) returns for it, plus its IDs, the
  token's decimals and a 30-day APY.
* `totals` are sums of the position rows, one entry per token.
* `asOf` is the oldest refresh time among the positions. Values refresh on RebelFi's schedule, not live.

Amounts are strings in base units: show them with `tokenDecimals`. APYs are decimals (`0.05` = 5%). Times are ISO 8601
UTC.

A profile-scoped key reads the account's wallets in its own profile; an admin key reads all of them.

### Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `accountId` | `number` | Yes | Client account ID |

### Example Request

```bash cURL theme={null}
curl -X GET "https://api.rebelfi.io/v1/accounts/17/summary" \
  -H "x-api-key: your_api_key"
```

```typescript SDK theme={null}
const summary = await client.accounts.summary(17);
for (const total of summary.totals) {
  console.log(`${total.token}: ${total.currentValue} (base units, ${total.tokenDecimals} decimals)`);
}
```

### Example Response

```json theme={null}
{
  "asOf": "2026-11-25T08:00:00.000Z",
  "apy30d": 0.049,
  "totals": [
    {
      "token": "USDC",
      "tokenDecimals": 6,
      "principal": "250000000000",
      "currentValue": "251027400000",
      "yieldEarned": "1054800000"
    }
  ],
  "wallets": [
    {
      "walletId": 42,
      "address": "So11...abc",
      "chain": "SOLANA",
      "explorerUrl": "https://explorer.solana.com/address/So11...abc",
      "balances": [
        {
          "token": "USDC",
          "tokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "tokenDecimals": 6,
          "available": "5000000000",
          "supplied": "251027400000"
        }
      ]
    }
  ],
  "positions": [
    {
      "allocationId": 901,
      "walletId": 42,
      "strategyId": 1,
      "strategyName": "USDC Lending",
      "venueId": 3,
      "venueName": "Kamino",
      "walletAddress": "So11...abc",
      "blockchain": "solana",
      "chain": "SOLANA",
      "token": "USDC",
      "tokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "tokenDecimals": 6,
      "principal": "250000000000",
      "currentValue": "251027400000",
      "yieldEarned": "1054800000",
      "apy": 0.052,
      "apyNet": 0.0494,
      "apy30d": 0.049,
      "lastUpdated": "2026-11-25T08:00:00.000Z"
    }
  ]
}
```

An account with no positions returns `asOf: null`, `apy30d: null`, and empty `totals` and `positions`; its wallets are
still listed.

### Response Fields

| Field | Type | Description |
| - | - | - |
| `asOf` | `string \| null` | The oldest `lastUpdated` among the positions. `null` when there are none |
| `apy30d` | `number \| null` | The positions' 30-day APY, weighted by current value. `null` when no position has both |
| `totals` | `TokenTotals[]` | One entry per token: the sums of that token's positions |
| `wallets` | `EarnWallet[]` | The account's linked wallets with their balances |
| `positions` | `Position[]` | One row per position |

### TokenTotals Object

| Field | Type | Description |
| - | - | - |
| `token` | `string` | Token symbol |
| `tokenDecimals` | `number` | Token decimals |
| `principal` | `string` | Supplied and not yet unwound |
| `currentValue` | `string` | Current value, after the yield share |
| `yieldEarned` | `string` | Earned to date |

### EarnWallet Object

| Field | Type | Description |
| - | - | - |
| `walletId` | `number` | Wallet ID |
| `address` | `string` | Wallet address |
| `chain` | `string` | `SOLANA`, `ETHEREUM`, `BASE`, `ARC` or `POLYGON` |
| `explorerUrl` | `string \| null` | The address on the chain's explorer |
| `balances[].token` | `string` | Token symbol |
| `balances[].tokenAddress` | `string` | Token contract address |
| `balances[].tokenDecimals` | `number` | Token decimals |
| `balances[].available` | `string` | In the wallet and not supplied |
| `balances[].supplied` | `string` | Current value of what is supplied from this wallet, after the yield share |

### Position Object

| Field | Type | Description |
| - | - | - |
| `allocationId` | `number` | Position ID |
| `walletId` | `number` | The earn wallet holding the position |
| `strategyId` | `number` | Strategy ID (use it to [Unwind](https://docs.rebelfi.io/docs/api-reference/operations/unwind.md)) |
| `strategyName` | `string` | Strategy display name |
| `venueId` | `number` | Venue ID |
| `venueName` | `string` | Venue display name |
| `walletAddress` | `string` | Wallet address |
| `blockchain` | `string` | `solana`, `ethereum`, `polygon` or `base` |
| `chain` | `string` | The chain record's name, as in `wallets[].chain` |
| `token` | `string` | Token symbol |
| `tokenAddress` | `string` | Token contract address |
| `tokenDecimals` | `number` | Token decimals |
| `principal` | `string` | Supplied and not yet unwound |
| `currentValue` | `string` | Current value, after the yield share |
| `yieldEarned` | `string` | Earned to date; never negative |
| `apy` | `number` | Current APY of the strategy, before the yield share |
| `apyNet` | `number` | Current APY after this wallet's yield share |
| `apy30d` | `number \| null` | Mean of the strategy's daily net APY over the last 30 UTC days with data. `null` when there is none |
| `lastUpdated` | `string` | When the position's value was last refreshed |

### Errors

| Code | HTTP | Description |
| - | - | - |
| `ACCOUNT_NOT_FOUND` | 404 | No client account with this ID in your organization |


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