> ## 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.

# Org Overview (All Profiles)

> GET /v1/allocations/overview/all — Aggregated metrics across all wallet profiles

<Note>
  **Endpoint:** `GET https://api.rebelfi.io/v1/allocations/overview/all`
</Note>

Get an aggregate overview of all wallet allocations across your entire organization, broken down per wallet profile. Returns per-profile metrics and org-wide totals including total value, yield earned, average APY, and distributions by protocol, asset, and blockchain.

<Warning>
  This endpoint requires an **admin API key**. Admin keys are read-only keys not scoped to any specific wallet profile. See [Authentication](/guides/authentication) for details.
</Warning>

### Query Parameters

| Field             | Type     | Required | Description                                 |
| ----------------- | -------- | -------- | ------------------------------------------- |
| `walletProfileId` | `number` | No       | Filter results to a specific wallet profile |

### Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.rebelfi.io/v1/allocations/overview/all" \
    -H "x-api-key: your_admin_api_key"
  ```

  ```bash "cURL (filtered)" theme={null}
  curl -X GET "https://api.rebelfi.io/v1/allocations/overview/all?walletProfileId=1" \
    -H "x-api-key: your_admin_api_key"
  ```

  ```typescript SDK theme={null}
  // All profiles
  const overview = await client.allocations.overviewAll();

  // Filtered to one profile
  const overview = await client.allocations.overviewAll(1);
  ```
</CodeGroup>

### Example Response

```json theme={null}
{
  "profiles": [
    {
      "walletProfileId": 1,
      "walletProfileName": "Partner A",
      "totalWallets": 800,
      "activeWallets": 650,
      "totalValueUsd": "2500000.300000",
      "totalYieldEarnedUsd": "75000.100000",
      "averageApyDecimal": 0.065,
      "protocolDistribution": [
        {
          "name": "AAVE V3",
          "valueUsd": "1500000.200000",
          "percentage": 60.0,
          "walletCount": 400
        },
        {
          "name": "Kamino",
          "valueUsd": "1000000.100000",
          "percentage": 40.0,
          "walletCount": 250
        }
      ],
      "assetDistribution": [
        {
          "name": "USDC",
          "valueUsd": "2000000.240000",
          "percentage": 80.0,
          "walletCount": 550
        }
      ],
      "blockchainDistribution": [
        {
          "name": "ethereum",
          "valueUsd": "1500000.200000",
          "percentage": 60.0,
          "walletCount": 400
        },
        {
          "name": "solana",
          "valueUsd": "1000000.100000",
          "percentage": 40.0,
          "walletCount": 250
        }
      ]
    },
    {
      "walletProfileId": 2,
      "walletProfileName": "Partner B",
      "totalWallets": 450,
      "activeWallets": 330,
      "totalValueUsd": "1750000.200000",
      "totalYieldEarnedUsd": "52500.050000",
      "averageApyDecimal": 0.072,
      "protocolDistribution": [],
      "assetDistribution": [],
      "blockchainDistribution": []
    }
  ],
  "totals": {
    "totalWallets": 1250,
    "activeWallets": 980,
    "totalValueUsd": "4250000.500000",
    "totalYieldEarnedUsd": "127500.150000",
    "averageApyDecimal": 0.068,
    "protocolDistribution": [
      {
        "name": "AAVE V3",
        "valueUsd": "2550000.300000",
        "percentage": 60.0,
        "walletCount": 620
      },
      {
        "name": "Kamino",
        "valueUsd": "1700000.200000",
        "percentage": 40.0,
        "walletCount": 360
      }
    ],
    "assetDistribution": [
      {
        "name": "USDC",
        "valueUsd": "3400000.400000",
        "percentage": 80.0,
        "walletCount": 850
      }
    ],
    "blockchainDistribution": [
      {
        "name": "ethereum",
        "valueUsd": "2550000.300000",
        "percentage": 60.0,
        "walletCount": 620
      },
      {
        "name": "solana",
        "valueUsd": "1700000.200000",
        "percentage": 40.0,
        "walletCount": 360
      }
    ]
  }
}
```

### Response Fields

| Field      | Type                | Description                                                                                                 |
| ---------- | ------------------- | ----------------------------------------------------------------------------------------------------------- |
| `profiles` | `OrgOverview[]`     | Per-profile overview breakdown (same shape as [Org Overview](/api-reference/allocations/overview) response) |
| `totals`   | `OrgOverviewTotals` | Aggregated totals across all profiles                                                                       |

### OrgOverviewTotals Object

| Field                    | Type                  | Description                                            |
| ------------------------ | --------------------- | ------------------------------------------------------ |
| `totalWallets`           | `number`              | Total wallets across all profiles                      |
| `activeWallets`          | `number`              | Wallets with active allocations across all profiles    |
| `totalValueUsd`          | `string`              | Total value across all profiles (USD)                  |
| `totalYieldEarnedUsd`    | `string`              | Total yield earned across all profiles (USD)           |
| `averageApyDecimal`      | `number`              | Weighted average APY as decimal (e.g., 0.068 for 6.8%) |
| `protocolDistribution`   | `DistributionEntry[]` | Org-wide breakdown by protocol/venue                   |
| `assetDistribution`      | `DistributionEntry[]` | Org-wide breakdown by token                            |
| `blockchainDistribution` | `DistributionEntry[]` | Org-wide breakdown by blockchain network               |

### Errors

| Status | Code               | Description                           |
| ------ | ------------------ | ------------------------------------- |
| `403`  | `Forbidden`        | API key is not an admin key           |
| `404`  | `WALLET_NOT_FOUND` | Specified `walletProfileId` not found |
