POST
/
sdk
/
{environmentId}
/
users
/
embeddedWallets
/
emailAuth
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/users/embeddedWallets/emailAuth \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "walletId": "95b11417-f18f-457f-8804-68e361f9164f",
  "turnkeyEmailAuthTargetPublicKey": "An example name"
}'
{
  "turnkeyUserId": "95b11417-f18f-457f-8804-68e361f9164f",
  "turnkeyApiKeyId": "95b11417-f18f-457f-8804-68e361f9164f"
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

environmentId
string
required

ID of the environment

Body

application/json
walletId
string
required

ID of the environment

turnkeyEmailAuthTargetPublicKey
string
required

Response

200 - application/json
turnkeyUserId
string
required

ID of the environment

turnkeyApiKeyId
string
required

ID of the environment