Toggle the email verification factor on or off
curl --request POST \
--url https://pria.praxislxp.com/api/user/me/mfa/email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true
}
'{
"success": true,
"mfaEmailEnabled": true,
"mfaEnabled": true
}User Profile
Toggle the email verification factor on or off
Per-user switch for the email second factor. Independent of the
authenticator-app (TOTP) factor — a user may run both at once. Flips
mfaEmailEnabled directly (no email round-trip proof: the caller is
already authenticated as that email identity), then recomputes the
derived master gate mfaEnabled = email OR totp. Disabling the last
remaining factor also resets the preferred factor back to email. Audits
mfa.email.enabled / mfa.email.disabled.
POST
/
api
/
user
/
me
/
mfa
/
email
Toggle the email verification factor on or off
curl --request POST \
--url https://pria.praxislxp.com/api/user/me/mfa/email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true
}
'{
"success": true,
"mfaEmailEnabled": true,
"mfaEnabled": true
}Authorizations
JWT token passed in authorization header
Body
application/json
true to turn the email factor on, false to turn it off.
Was this page helpful?
⌘I