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

# Sandbox: Accounts

> List and view account details via API

## Overview

Accounts are containers that hold assets and can be used for transacting. In Sandbox, create accounts through the Portal UI.

<Info>
  Sandbox accounts are isolated from Live and do not require linking to any external Coinbase accounts.
</Info>

## Prerequisites

The following instructions use `cdpcurl` and a Sandbox API key.
Install [cdpcurl](https://github.com/coinbase/cdpcurl#homebrew) to begin.

## 1. List accounts

See all your Sandbox accounts:

```bash theme={null}
cdpcurl -k $CDP_API_KEY \
  'https://sandbox.cdp.coinbase.com/platform/v2/accounts'
```

<Accordion title="Example response">
  ```json theme={null}
  {
    "accounts": [
      {
        "accountId": "account_db458f63-418a-4a91-a045-fab93ac35c3f",
        "name": "My Test Account",
        "createdAt": "2026-02-11T20:00:00Z",
        "updatedAt": "2026-02-11T20:00:00Z"
      }
    ]
  }
  ```
</Accordion>

<Tip>
  To get just your account IDs:

  ```bash theme={null}
  cdpcurl -k $CDP_API_KEY \
    'https://sandbox.cdp.coinbase.com/platform/v2/accounts' | sed '1d' | jq -r '.accounts[].accountId'
  ```
</Tip>

## 2. Get account details

View detailed account information including balances:

```bash theme={null}
cdpcurl -k $CDP_API_KEY \
  'https://sandbox.cdp.coinbase.com/platform/v2/accounts/YOUR_ACCOUNT_ID'
```

<Accordion title="Example response">
  ```json theme={null}
  {
    "accountId": "account_db458f63-418a-4a91-a045-fab93ac35c3f",
    "name": "My Test Account",
    "balances": [
      {
        "asset": "usd",
        "amount": "1000.00"
      },
      {
        "asset": "usdc",
        "amount": "500.00"
      }
    ],
    "createdAt": "2026-02-11T20:00:00Z",
    "updatedAt": "2026-02-11T23:00:00Z"
  }
  ```
</Accordion>

## Using Portal UI

You can create, manage, and fund accounts through the Portal UI:

<Steps>
  <Step title="Access your account">
    Navigate to [Portal Accounts](https://portal.cdp.coinbase.com/v2/sandbox) in Sandbox
  </Step>

  <Step title="Create account">
    Name the account (e.g., "My Test Account")
  </Step>

  <Step title="Edit test assets">
    Add a balance to your account. Currently we support USD, USDC, USDT (e.g., set USD to \$1000)
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/coinbase-prod/XmV3g17i7b8SBr0T/images/sandbox_account_balance.png?fit=max&auto=format&n=XmV3g17i7b8SBr0T&q=85&s=16c3bcc710959a8cfe1d357c267c9e10" alt="Sandbox account showing test balances for USD, USDT, and USDC" width="1116" height="660" data-path="images/sandbox_account_balance.png" />
</Frame>

<Note>
  Account funding is **only available** through the Portal UI. All balances are simulated within the Sandbox environment.
</Note>

## What to read next

<CardGroup cols={2}>
  <Card title="List Accounts" icon="list" href="/api-reference/v2/rest-api/accounts/list-accounts">
    API reference for listing accounts
  </Card>

  <Card title="Get Account" icon="wallet" href="/api-reference/v2/rest-api/accounts/get-account">
    API reference for getting account details
  </Card>
</CardGroup>
