# HTTP — `GET /v1/subAccounts`

Lists every account of the owner of the wallet session, and how many
sub-accounts the owner can hold. Requires the owner's Para wallet session. An
API key cannot list the accounts. [Sub-accounts](/concepts/sub-accounts)
explains the rules.

```http
GET /v1/subAccounts
Authorization: Bearer <para-jwt>
X-Tessera-Wallet: 0x... # required when the JWT has multiple EVM wallets
```

The session decides the owner. The endpoint ignores a `user` query parameter.

Example HTTP `200` response:

```jsonc
{
  "status": "ok",
  "data": {
    "owner": "0x0000000000000000000000000000000000000001",
    "allowance": {
      "allowed": 2,
      "used": 1,
      "volumeUsdc": "1532000.25",
      "nextUnlockAtUsdc": "2000000",
      "override": null
    },
    "accounts": [
      {
        "address": "0x0000000000000000000000000000000000000001",
        "name": "master",
        "kind": "master",
        "slot": 0,
        "createdAtMs": 1780000000000,
        "totalCashUsdc": "1480.6"
      },
      {
        "address": "0x9f3c5d0e7a41b2c86f1d94e03a5b7c2d18e6f0a1",
        "name": "mm-1",
        "kind": "sub",
        "slot": 1,
        "createdAtMs": 1790000000000,
        "totalCashUsdc": "250.5"
      }
    ]
  },
  "server_time_ms": 1790085600000
}
```

| Field | Meaning |
| --- | --- |
| `owner` | The wallet of the session, which is the address of the master account. |
| `allowance.allowed` | How many sub-accounts the owner can hold now. |
| `allowance.used` | How many sub-accounts the owner holds. |
| `allowance.volumeUsdc` | The cumulative volume of the owner in USDC. Mosaiq updates it every 10 minutes, so it can be up to 10 minutes old. |
| `allowance.nextUnlockAtUsdc` | The volume at which `allowed` grows by one. `null` when `allowed` is 5. |
| `allowance.override` | The limit that Mosaiq set for the owner, or `null`. `allowed` is the larger of this limit and the number that the volume gives, and at most 5. |
| `accounts` | The master account first, then the sub-accounts by `slot`. |
| `accounts[].address` | The address of the account. The master account's address is `owner`. |
| `accounts[].name` | `master` for the master account, the name given at creation for a sub-account. |
| `accounts[].kind` | `master` or `sub`. |
| `accounts[].slot` | `0` for the master account, `1` to `5` for a sub-account. |
| `accounts[].createdAtMs` | When Mosaiq created the account, in Unix milliseconds. |
| `accounts[].totalCashUsdc` | The cash of the account in the ledger, as a decimal string. While a withdrawal is pending, it can be higher than `totalCashUsdc` in `clearinghouseState`. |

## Errors

| HTTP | `code` | `detail` | Meaning |
| --- | --- | --- | --- |
| `429` | `rate_limited` | `rate_limited` | The client IP exceeded the HTTP budget. |
| `401` | `unauthorized` | `wallet_auth_required` | The bearer is an API key. |
| `401` | `unauthorized` | `unauthorized` | Missing bearer, or the token is not a valid Para JWT. |
| `403` | `forbidden` | `not_whitelisted` | The wallet is not allowlisted. |

The Para token and wallet-selection errors are the
[shared ones](/api/api-key#errors).
