Skip to main content

Table of Endpoints

Overview

The Account resource represents a user’s accounts: cryptocurrency wallets, fiat currency accounts, and vaults. When you set fetch_all=true, the response also includes self-custody wallet accounts and accounts in the user’s perpetuals portfolio. The type field says which kind it is. New types may be added in the future, so make sure your implementation handles values it doesn’t recognize. User can only have one primary account and its type can only be wallet.

Account Resource

List Accounts

List a current user’s accounts to which the authentication method has access to.

HTTP Request

GET https://api.coinbase.com/v2/accounts

Scopes

  • wallet:accounts:read
  • coinbase:stablecoins:balance-read
If your token has coinbase:stablecoins:balance-read but not wallet:accounts:read, the response includes only stablecoin accounts. Pagination applies to the stablecoin accounts only. With wallet:accounts:read, the response includes all accounts.

Arguments

With fetch_all=true, results are still limited to the accounts the user granted your app. next_uri keeps fetch_all=true, so later pages use the same setting.
available_to_send accounts for holds and the user’s send limits, so it can be lower than balance. It’s never higher than the account’s own available balance. Because send limits apply across the user, don’t add available_to_send values together across accounts.The field is omitted, not set to zero, when it isn’t available for an account. This includes accounts in currencies other than USDC. An actual zero amount is still returned.

Examples

Request

Response

Show Account

Show (or get) a current user’s account. To access the primary account for a given currency, a currency string (e.g., BTC or ETH) can be used instead of the account ID in the URL.

HTTP Request

GET https://api.coinbase.com/v2/accounts/:account_id

Scopes

  • wallet:accounts:read
  • coinbase:stablecoins:balance-read
If your token has coinbase:stablecoins:balance-read but not wallet:accounts:read, you can only get stablecoin accounts. A request for any other account, by account ID or by currency (for example, BTC), returns 404 Not Found.

Arguments

See List Accounts for details on available_to_send and an example response that includes it. Show Account returns any account the user granted, by ID, without fetch_all. Getting an account by currency (for example, BTC) returns only the user’s primary Coinbase account for that currency.

Examples

Request

Response