Skip to main content

MFA API's Route Improvement

Overview

This document provides a route mapping for LoginRadius Multi-Factor Authentication (MFA) APIs. It shows how legacy MFA endpoints map to newer, more consistent routes, making it easier to integrate and maintain MFA flows across different factors such as Email OTP, SMS OTP, TOTP, Security Questions, Push, Duo, Backup Codes, and Passkeys. Use this page as a migration reference when updating an existing integration to the newer MFA routes.

What’s changing

  • Legacy paths are being replaced with cleaner, channel-specific endpoints (for example, /account/2fa/email, /account/2fa/sms, /account/2fa/totp).
  • MFA operations are organized into two categories:
    • Auth APIs: endpoints used during login/reauth and OTP verification flows.
    • Manage APIs: endpoints used to manage or remove MFA factors configured on an account.
  • In some cases, multiple legacy routes consolidate into a single new route (for example, older TOTP verification routes map to /account/2fa/totp).

Auth APIs

MethodOld PathNew PathDescription
GET/account/2fa/otp/email/account/2fa/emailResend Email OTP
GET/account/reauth/2fa/otp/email/account/reauth/2fa/emailResend ReAuth OTP
DELETE/account/2fa/authenticator/account/2fa/totp
/account/2fa/sms
Remove profile TOTP / Remove profile SMS OTP
DELETE/account/2fa/authenticator/otp/email/account/2fa/emailDelete profile Email OTP
DELETE/account/2fa/authenticator/securityquestionanswer/account/2fa/securityquestionDelete profile Security Questions
DELETE/account/2fa/authenticator/push/account/2fa/pushDelete profile Push
DELETE/account/2fa/authenticator/duo/account/2fa/duoDelete profile Duo
DELETE/account/2fa/authenticator/passkey/account/2fa/passkeyDelete profile Passkey
PUT/account/2fa/verification/otp/email/account/2fa/emailVerify Email OTP
PUT/account/2fa/verification/googleauthenticatorcode
/account/2fa/verification/authenticatorcode
/account/2fa/totpVerify TOTP
PUT/account/2fa/verification/duo/account/2fa/duoVerify Duo
PUT/account/2fa/securityquestionanswer/account/2fa/securityquestionVerify Security Questions
PUT/account/2fa/account/2fa/sms/phoneUpdate MFA phone number
PUT/account/2fa/verification/otp/account/2fa/smsVerify SMS OTP
POST/login/2fa/otp/email/login/2fa/emailResend Email OTP
PUT/login/2fa/verification/otp/email/login/2fa/emailLogin by Email OTP verification
PUT/login/2fa/verification/googleauthenticatorcode
/login/2fa/verification/authenticatorcode
/login/2fa/totpLogin by TOTP verification
PUT/login/2fa/securityquestionanswer/login/2fa/securityquestionLogin by Security Questions verification
POST/login/2fa/verification/securityquestionanswer/login/2fa/securityquestionUpdate Security Questions
PUT/login/2fa/verification/backupcode/login/2fa/backupcodeLogin by Backup Code verification
PUT/login/2fa/verification/otp/login/2fa/smsLogin by SMS OTP verification
PUT/login/2fa/login/2fa/sms/phoneUpdate MFA phone number
GET/login/2fa/resend/login/2fa/sms/resendResend SMS OTP
PUT/login/2fa/verification/push/login/2fa/duoLogin by Duo verification
PUT/login/2fa/verification/duo/login/2fa/pushLogin by Push verification

Manage APIs

MethodOld PathNew PathAPI Description
DELETE/account/2fa/authenticator/account/2fa/totp
/account/2fa/sms
Delete profile TOTP / Delete profile SMS OTP
DELETE/account/2fa/authenticator/otp/email/account/2fa/emailDelete profile Email OTP
DELETE/account/2fa/authenticator/securityquestionanswer/account/2fa/securityquestionDelete profile Security Questions
DELETE/account/2fa/authenticator/push/account/2fa/pushDelete profile Push
DELETE/account/2fa/authenticator/duo/account/2fa/duoDelete profile Duo
DELETE/account/2fa/authenticator/passkey/account/2fa/passkeyDelete profile Passkey

Please reach out to LoginRadius Support for any further queries.