Table of Endpoints
Name | Method | Endpoint | Legacy Scope | CDP API Key Scope |
---|---|---|---|---|
List Accounts | GET | /v2/accounts | wallet:accounts:read | view |
Show Account | GET | /v2/accounts/:account_id | wallet:accounts:read | view |
Overview
The Account resource represents all of a user’s accounts, including cryptocurrency wallets, fiat currency accounts, and vaults. This is represented in thetype
field. New types may be added in the future, so make sure this won’t break your implementation.
User can only have one primary account and its type can only be wallet
.
Parameter | Description |
---|---|
id string | Resource ID |
name string | User or system defined name |
primary boolean | Primary account (or not) |
type string, enumerable | Account’s type. Valid values: wallet , fiat , vault |
currency hash | Account’s currency |
balance money hash | Crypto balance |
created_at timestamp | |
updated_at timestamp | |
resource string, constant account | |
resource_path string |
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
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