List accounts
Changed onList 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).
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP bearer
Query parameters
The number of resources to return per page.
The token for the next page of resources, if any.
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.
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.
Filter accounts by account type. When omitted, accounts of any type are returned. Combined with owner using AND.
Response
Successfully listed accounts.
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_applicableenum value to theerrorTyperesponse property for the response status
- warning
- warning
added the new
entity_not_configured_for_top_upenum value to theerrorTyperesponse property for the response status
- warning