Skip to main content
POST
/
v2
/
accounts
Create an account
curl --request POST \
  --url https://api.cdp.coinbase.com/platform/v2/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "owner": "customer_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "name": "My Business Account"
}'
{
  "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "type": "prime",
  "owner": "customer_af2937b0-9846-4fe7-bfe9-ccc22d935114",
  "name": "My Business Account",
  "createdAt": "2023-10-08T14:30:00Z",
  "updatedAt": "2023-10-08T14:30:00Z"
}

Authorizations

Authorization
string
header
required

A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.

Headers

X-Idempotency-Key
string

An optional UUID v4 request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.

Required string length: 36

Body

application/json
owner
string
required

The Owner of the Account to create.

  • If the account is for entity, the value will be an Entity ID, e.g. entity_af2937b0-9846-4fe7-bfe9-ccc22d935114.

  • If the account is for a customer, the value will be a Customer ID, e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114.

  • Further, the corresponding Customer must have at least one of the following capabilities enabled:

    • sendFiat
    • receiveFiat
    • sendCrypto
    • receiveCrypto
    • trade.
Example:

"customer_af2937b0-9846-4fe7-bfe9-ccc22d935114"

name
string

An optional name for the account. Must be 1-64 characters and can only contain alphanumeric characters, hyphens, and spaces.

Maximum length: 64
Example:

"My Business Account"

Response

Successfully created account.

accountId
string
required

The ID of the Account, which is a UUID prefixed by the string account_.

Example:

"account_af2937b0-9846-4fe7-bfe9-ccc22d935114"

type
enum<string>
required

The type of the Account.

Available options:
prime,
business,
cdp
Example:

"prime"

owner
string
required

The Owner ID, which can be either your Entity or a Customer of yours. Owner IDs are UUIDs prefixed with the Owner Type as follows:

  • Entity: entity_ - If the Owner is your Entity, e.g. entity_af2937b0-9846-4fe7-bfe9-ccc22d935114
  • Customer: customer_ - If the Owner is a Customer of yours, e.g. customer_af2937b0-9846-4fe7-bfe9-ccc22d935114.
Example:

"customer_af2937b0-9846-4fe7-bfe9-ccc22d935114"

createdAt
string<date-time>
required

The timestamp when the account was created.

Example:

"2023-10-08T14:30:00Z"

updatedAt
string<date-time>
required

The timestamp when the account was last updated.

Example:

"2023-10-08T14:30:00Z"

name
string

An optional name for the account. Must be 1-64 characters and can only contain alphanumeric characters, hyphens, and spaces.

Maximum length: 64
Example:

"My Business Account"