/v2/user/mfa/totpEnable TOTP-based multi-factor authentication
Enables TOTP-based multi-factor authentication for the authenticated user's account. Provide the account password, the six-character otp, and the 16-character totpKey that matches the specified pattern. Successful requests invalidate all previous sessions and return a new access token.
Credentials and TOTP details used to enable multi-factor authentication.
A 400 is returned when a required credential is missing or a value fails validation. A 401 is returned when the password or OTP is rejected, a 403 when the authenticated user is not permitted to change MFA settings, and a 404 when the associated user or resource cannot be found. otp must be exactly 6 characters, totpKey exactly 16 characters matching ^(?:[a-z2-7]{8})*$, and password no more than 50 characters.