Create and send MFA verification code
Create a new MFA verification code and send it to the user's bound identifier (email or phone). This endpoint automatically uses the user's bound email address or phone number from their profile for MFA verification. The user must be identified before calling this endpoint.
POST
/api/experience/verification/mfa-verification-code
curl \
--request POST 'https://[tenant_id].logto.app/api/experience/verification/mfa-verification-code' \
--header "Content-Type: application/json" \
--data '{"identifierType":"email"}'
Request examples
{
"identifierType": "email"
}
Response examples (200)
{
"verificationId": "string"
}