two-factor-auth-controller
Request 2FA verification code (requestTwoFaVerificationCode)
Request 2FA verification code.
To make a request to this endpoint, you need an access token with the scope of PRE_VERIFICATION_TOKEN, which is issued on username/password auth if 2FA is enabled.
The API method is rate limited (using rate limit config from TwoFactorAuthSettings). Will return a Bad Request error if provider is not configured for usage, and Too Many Requests error if rate limits are exceeded.
post/api/auth/2fa/verification/send
Query parameters
providerType'TOTP' | 'SMS' | 'EMAIL' | 'BACKUP_CODE' required
Response
OK