POST
/
users
/
{userId}
/
wallets
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/users/{userId}/wallets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "publicWalletAddress": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "chain": "ETH",
  "walletName": "An example name",
  "walletProvider": "browserExtension"
}'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "name": "An example name",
  "chain": "ETH",
  "publicKey": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "provider": "browserExtension",
  "properties": {
    "turnkeySubOrganizationId": "95b11417-f18f-457f-8804-68e361f9164f",
    "turnkeyPrivateKeyId": "95b11417-f18f-457f-8804-68e361f9164f",
    "isAuthenticatorAttached": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

UUID of the user

Required string length: 36

Body

application/json
Wallet fields
publicWalletAddress
string
required

Valid blockchain wallet address, must be an alphanumeric string without any special characters

chain
enum<string>
required
Available options:
ETH,
EVM,
FLOW,
SOL,
ALGO,
STARK,
COSMOS
walletName
string
required
walletProvider
enum<string>
required
Available options:
browserExtension,
custodialService,
walletConnect,
qrCode,
deepLink,
embeddedWallet,
smartContractWallet

Response

201
application/json
Successfully created new wallet for the user
id
string
required
Required string length: 36
name
string
required
chain
enum<string>
required
Available options:
ETH,
EVM,
FLOW,
SOL,
ALGO,
STARK,
COSMOS
publicKey
string
required

Valid blockchain wallet address, must be an alphanumeric string without any special characters

provider
enum<string>
required
Available options:
browserExtension,
custodialService,
walletConnect,
qrCode,
deepLink,
embeddedWallet,
smartContractWallet
properties
object