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"
}
Initialize the email authentication process for a user’s embedded wallet
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"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of the environment
36
"95b11417-f18f-457f-8804-68e361f9164f"
Init email auth fields
The body is of type object
.
Init email auth response
The response is of type object
.