---
title: "Add Solana account to end user"
method: POST
path: "/v2/end-users/{userId}/solana"
tags: ["End User Account Management"]
---

# Add Solana account to end user

`POST /v2/end-users/{userId}/solana`

## Request

- Base URL: `https://api.cdp.coinbase.com/platform`
- URL: `https://api.cdp.coinbase.com/platform/v2/end-users/{userId}/solana`
- Auth: HTTP bearer

Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts.
This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key.

## Path parameters

- `userId` string, required

## Headers

- `X-Wallet-Auth` string, required
- `X-Idempotency-Key` string

## Request body

- object

## Response `201`

Successfully added Solana account to end user.

- object
  - `solanaAccount` EndUserSolanaAccount, required: Information about a Solana account associated with an end user.
    - `address` string, required: The base58 encoded address of the Solana account.
    - `createdAt` string, date-time, required: The date and time when the account was created, in ISO 8601 format.
    - `exportedAt` string, date-time, nullable: The date and time when the account's private key was first exported, in ISO 8601 format. This is set on the first export and preserved on subsequent exports; it is not updated on re-export.
    - `ejectedAt` string, date-time, nullable: The date and time when the account's key was ejected (marked for deletion), in ISO 8601 format. Populated when the account has been ejected. The account record remains queryable after this timestamp is set; it reflects when ejection was requested, not when the key material is purged.

## Other responses

- `400`: Invalid request.
- `401`: Unauthorized.
- `402`: A payment method is required to complete this operation.
- `404`: End user not found.
- `422`: Idempotency key conflict.
- `500`: Internal server error.
- `502`: Bad gateway.
- `503`: Service unavailable.

## Changes

- **2026-12-01** `06cb41a4fb57`: 8 warning
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `400`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `401`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `402`
  - added the new `policy_not_applicable` enum value to the `errorType` response property for the response status `404`
  - …4 more
- **2026-10-16** `ff3c1fdef902`: 8 warning
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `400`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `401`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `402`
  - added the new `entity_not_configured_for_top_up` enum value to the `errorType` response property for the response status `404`
  - …4 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/changes/v2/end-users/:userId/solana/post.md)

---

[API](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis.md) - [All operations](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/coinbase/apis/coinbase-developer-platform-apis/revisions/06cb41a4fb57?raw)
