sdk
Create one or more new embedded wallets for a user
Create one or more embedded wallets for a user
POST
/
sdk
/
{environmentId}
/
users
/
embeddedWallets
Authorization
Path
Body
curl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/users/embeddedWallets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"embeddedWallets": [
{
"chain": "ETH",
"embeddedWalletProvider": "turnkey",
"embeddedWalletSpecificOpts": {
"attestation": {
"attestationObject": "An example name",
"clientDataJson": "An example name",
"credentialId": "An example name",
"transports": []
},
"challenge": "An example name"
},
"isAuthenticatorAttached": true
}
]
}'
{
"jwt": "jwt_value",
"user": {
"alias": "<string>",
"btcWallet": "<string>",
"ckbWallet": "<string>",
"country": "US",
"discordNotification": true,
"dogeWallet": "<string>",
"email": "jsmith@example.com",
"emailNotification": true,
"firstName": "<string>",
"firstVisit": "2023-11-07T05:31:56Z",
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"jobTitle": "<string>",
"kasWallet": "<string>",
"kdaWallet": "<string>",
"lastName": "<string>",
"lastVisit": "2023-11-07T05:31:56Z",
"ltcWallet": "<string>",
"metadata": {},
"newUser": true,
"newsletterNotification": true,
"phoneNumber": "<string>",
"policiesConsent": true,
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"tShirtSize": "<string>",
"team": "<string>",
"username": "<string>",
"verifiedCredentials": []
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
environmentId
string
requiredID of the environment
Body
application/json
embeddedWallets
object[]
requiredThe parameters which will be used to create embedded wallets for the user.
Response
201 - application/json
jwt
string
requiredEncoded JWT token
user
object
requiredcurl --request POST \
--url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/users/embeddedWallets \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"embeddedWallets": [
{
"chain": "ETH",
"embeddedWalletProvider": "turnkey",
"embeddedWalletSpecificOpts": {
"attestation": {
"attestationObject": "An example name",
"clientDataJson": "An example name",
"credentialId": "An example name",
"transports": []
},
"challenge": "An example name"
},
"isAuthenticatorAttached": true
}
]
}'
{
"jwt": "jwt_value",
"user": {
"alias": "<string>",
"btcWallet": "<string>",
"ckbWallet": "<string>",
"country": "US",
"discordNotification": true,
"dogeWallet": "<string>",
"email": "jsmith@example.com",
"emailNotification": true,
"firstName": "<string>",
"firstVisit": "2023-11-07T05:31:56Z",
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"jobTitle": "<string>",
"kasWallet": "<string>",
"kdaWallet": "<string>",
"lastName": "<string>",
"lastVisit": "2023-11-07T05:31:56Z",
"ltcWallet": "<string>",
"metadata": {},
"newUser": true,
"newsletterNotification": true,
"phoneNumber": "<string>",
"policiesConsent": true,
"projectEnvironmentId": "95b11417-f18f-457f-8804-68e361f9164f",
"tShirtSize": "<string>",
"team": "<string>",
"username": "<string>",
"verifiedCredentials": []
}
}