curl --request POST \
--url https://api.turnkey.com/public/v1/submit/email_auth \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"type": "ACTIVITY_TYPE_EMAIL_AUTH_V2",
"timestampMs": "<string> (e.g., 1745474677470)",
"organizationId": "<string> (Your Organization ID)",
"parameters": {
"email": "<string>",
"targetPublicKey": "<string>",
"apiKeyName": "<string>",
"expirationSeconds": "<string>",
"emailCustomization": {
"appName": "<string>",
"logoUrl": "<string>",
"magicLinkTemplate": "<string>",
"templateVariables": "<string>",
"templateId": "<string>"
},
"invalidateExisting": true,
"sendFromEmailAddress": "<string>"
}
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_EMAIL_AUTH_V2",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677470)",
"result": {
"activity": {
"type": "<string>",
"intent": {
"emailAuthIntent": {
"email": "<string>",
"targetPublicKey": "<string>",
"apiKeyName": "<string>",
"expirationSeconds": "<string>",
"emailCustomization": {
"appName": "<string>",
"logoUrl": "<string>",
"magicLinkTemplate": "<string>",
"templateVariables": "<string>",
"templateId": "<string>"
},
"invalidateExisting": true,
"sendFromEmailAddress": "<string>"
}
},
"result": {
"emailAuthResult": {
"userId": "<string>",
"apiKeyId": "<string>"
}
}
}
}
}
}
Authenticate a user via Email
curl --request POST \
--url https://api.turnkey.com/public/v1/submit/email_auth \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"type": "ACTIVITY_TYPE_EMAIL_AUTH_V2",
"timestampMs": "<string> (e.g., 1745474677470)",
"organizationId": "<string> (Your Organization ID)",
"parameters": {
"email": "<string>",
"targetPublicKey": "<string>",
"apiKeyName": "<string>",
"expirationSeconds": "<string>",
"emailCustomization": {
"appName": "<string>",
"logoUrl": "<string>",
"magicLinkTemplate": "<string>",
"templateVariables": "<string>",
"templateId": "<string>"
},
"invalidateExisting": true,
"sendFromEmailAddress": "<string>"
}
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_EMAIL_AUTH_V2",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677470)",
"result": {
"activity": {
"type": "<string>",
"intent": {
"emailAuthIntent": {
"email": "<string>",
"targetPublicKey": "<string>",
"apiKeyName": "<string>",
"expirationSeconds": "<string>",
"emailCustomization": {
"appName": "<string>",
"logoUrl": "<string>",
"magicLinkTemplate": "<string>",
"templateVariables": "<string>",
"templateId": "<string>"
},
"invalidateExisting": true,
"sendFromEmailAddress": "<string>"
}
},
"result": {
"emailAuthResult": {
"userId": "<string>",
"apiKeyId": "<string>"
}
}
}
}
}
}
ACTIVITY_TYPE_EMAIL_AUTH_V2
parameters field
Show details
emailCustomization field
Show details
https://dapp.xyz/%s
. The auth bundle will be interpolated into the %s
.Show activity details
Show intent details
Show emailAuthIntent details
Show emailCustomization details
https://dapp.xyz/%s
. The auth bundle will be interpolated into the %s
.Show result details
curl --request POST \
--url https://api.turnkey.com/public/v1/submit/email_auth \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
--data '{
"type": "ACTIVITY_TYPE_EMAIL_AUTH_V2",
"timestampMs": "<string> (e.g., 1745474677470)",
"organizationId": "<string> (Your Organization ID)",
"parameters": {
"email": "<string>",
"targetPublicKey": "<string>",
"apiKeyName": "<string>",
"expirationSeconds": "<string>",
"emailCustomization": {
"appName": "<string>",
"logoUrl": "<string>",
"magicLinkTemplate": "<string>",
"templateVariables": "<string>",
"templateId": "<string>"
},
"invalidateExisting": true,
"sendFromEmailAddress": "<string>"
}
}'
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_EMAIL_AUTH_V2",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677470)",
"result": {
"activity": {
"type": "<string>",
"intent": {
"emailAuthIntent": {
"email": "<string>",
"targetPublicKey": "<string>",
"apiKeyName": "<string>",
"expirationSeconds": "<string>",
"emailCustomization": {
"appName": "<string>",
"logoUrl": "<string>",
"magicLinkTemplate": "<string>",
"templateVariables": "<string>",
"templateId": "<string>"
},
"invalidateExisting": true,
"sendFromEmailAddress": "<string>"
}
},
"result": {
"emailAuthResult": {
"userId": "<string>",
"apiKeyId": "<string>"
}
}
}
}
}
}
Was this page helpful?