Accounts

List all accounts. The API will return all accounts that the API Key has Permissions to access. You can filter the results by using query parameters, which will be treated as a single conjunction (i.e. AND). Results are sorted by creation date in descending order (newest first).

get/v2/accounts

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Query parameters

pageSize, integer

The number of resources to return per page.

pageToken, string

The token for the next page of resources, if any.

owner, string[]

Filter accounts by owner. Values can be specific Owner IDs or owner type wildcards. Multiple values can be combined as a comma-separated list.

Specific Owner IDs:

  • entity_<uuid> - Accounts owned by a specific entity
  • customer_<uuid> - Accounts owned by a specific customer

Owner type wildcards:

  • entity - All entity-owned accounts
  • customer - All customer-owned accounts

Examples:

  • owner=customer_af29... - A specific customer's accounts
  • owner=customer - All customer accounts
  • owner=entity,customer_af29... - Entity accounts and a specific customer's accounts
  • When omitted, accounts with any owner are returned.
type, 'prime' | 'business' | 'cdp'

The type of the Account.

  • prime: a linked Coinbase Prime account.
  • business: a linked Coinbase Business account.
  • cdp: a CDP-native account created via this API. Used for accounts created on behalf of an Entity and for Customer-owned accounts.
Example:prime

Filter accounts by account type. When omitted, accounts of any type are returned. Combined with owner using AND.

Response

Successfully listed accounts.

intersection required
object
accounts, Account[] required

The list of accounts.

Example response

{
  "accounts": [
    {
      "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
      "type": "prime",
      "owner": "entity_af2937b0-9846-4fe7-bfe9-ccc22d935114",
      "name": "My Business Account",
      "createdAt": "2023-10-08T14:30:00Z",
      "updatedAt": "2023-10-08T14:30:00Z"
    }
  ],
  "nextPageToken": "eyJsYXN0X2lkIjogImFiYzEyMyIsICJ0aW1lc3RhbXAiOiAxNzA3ODIzNzAxfQ=="
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new entity_not_configured_for_top_up enum value to the errorType response property for the response status