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

# Balances and deposit details

## Accounts and balances

`GET /api/v1/accounts` · scope `read`

Your cash accounts and their balances. Returns an array of:

| Field | Type | Description |
| - | - | - |
| `id` | string | Account ID. |
| `name` | string | Account name. |
| `maskedNumber` | string | Masked account number. |
| `balanceUsd` | number | Balance in USD. |
| `accountNumber` | string \| null | Full account number, for receiving transfers. |
| `routingNumber` | string \| null | ABA routing number. |
| `bankName` | string \| null | Bank name. |
| `bankAddress` | string \| null | Bank address. |
| `depositNetworks` | string\[] | Blockchain networks this account can receive on. |
| `withdrawalNetworks` | string\[] | Blockchain networks the bank can send to. |
| `createdAt` | string \| null | When the account was opened. |

```bash REST theme={null}
curl "$CAPITALAI_API_URL/api/v1/accounts" \
  -H "Authorization: Bearer $CAPITALAI_API_KEY"
```

```ts TypeScript theme={null}
const res = await fetch(`${process.env.CAPITALAI_API_URL}/api/v1/accounts`, {
  headers: { Authorization: `Bearer ${process.env.CAPITALAI_API_KEY}` },
});
console.log(await res.json());
```

## Deposit instructions

`GET /api/v1/deposit-instructions` · scope `read`

Where to send money to fund your account.

| Query | Type | Description |
| - | - | - |
| `method` | `ach` \| `wire` \| `blockchain` | How you'll send it. Defaults to `ach`. |
| `network` | string | `blockchain` only: the network, e.g. `Solana`. |
| `asset` | string | `blockchain` only: the stablecoin, e.g. `USDC`. Refused if the network doesn't carry it. |

For `ach` and `wire`:

```json theme={null}
{
  "beneficiaryName": "…",
  "accountNumber": "…",
  "routingNumber": "…",
  "bankName": "…",
  "bankAddress": "…"
}
```

For `blockchain`:

```json theme={null}
{ "network": "Solana", "asset": "USDC", "address": "…", "warning": "…" }
```

Read `warning` before sending: funds sent on the wrong network or in the wrong asset may be lost.

```bash REST theme={null}
curl "$CAPITALAI_API_URL/api/v1/deposit-instructions?method=wire" \
  -H "Authorization: Bearer $CAPITALAI_API_KEY"
```

```ts TypeScript theme={null}
const res = await fetch(`${process.env.CAPITALAI_API_URL}/api/v1/deposit-instructions?method=wire`, {
  headers: { Authorization: `Bearer ${process.env.CAPITALAI_API_KEY}` },
});
console.log(await res.json());
```


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