Overview
Bitwarden supports multiple two-factor authentication (2FA) providers to enhance account security.Supported Providers
- Authenticator App (TOTP)
- Duo Security
- YubiKey
- WebAuthn (FIDO2)
List Two-Factor Providers
Get all configured two-factor providers for the authenticated user.Response
Returns a list of enabled two-factor providers with their configurations.Authenticator (TOTP)
Get Authenticator Setup
Retrieve the secret key and QR code for setting up authenticator apps.string
required
Master password hash for verification
Response
string
required
Base32-encoded secret key
string
required
SVG QR code for scanning
string
required
Token for completing setup
Enable Authenticator
string
required
6-digit code from authenticator app
string
required
Secret key from setup
string
required
Verification token from setup
Disable Authenticator
number
required
Provider type (0 for Authenticator)
string
required
Secret key
string
required
Verification token
Email 2FA
Get Email Configuration
string
required
Master password hash
Send Setup Email
string
required
Email address to use for 2FA
string
required
Master password hash
Enable Email 2FA
string
required
Email address for 2FA
string
required
6-digit code from email
string
required
Master password hash
Duo Security
Get Duo Configuration
string
required
Master password hash
Enable Duo
string
required
Duo client ID
string
required
Duo client secret
string
required
Duo API hostname
string
required
Master password hash
Organization Duo
Get Organization Duo Configuration
string
required
Organization ID
Enable Organization Duo
string
required
Organization ID
string
required
Duo client ID
string
required
Duo client secret
string
required
Duo API hostname
Disable Organization Duo
string
required
Organization ID
number
required
Provider type (6 for OrganizationDuo)
YubiKey
Get YubiKey Configuration
string
required
Master password hash
Enable YubiKey
string
First YubiKey OTP (12 characters)
string
Second YubiKey OTP (optional)
string
Third YubiKey OTP (optional)
string
Fourth YubiKey OTP (optional)
string
Fifth YubiKey OTP (optional)
boolean
Whether NFC is supported
string
required
Master password hash
You can register up to 5 YubiKeys. The first key is required, others are optional backups.
WebAuthn (FIDO2)
Get WebAuthn Configuration
string
required
Master password hash
Start WebAuthn Registration
string
required
Master password hash
Response
Returns a challenge object compatible withnavigator.credentials.create().
Complete WebAuthn Registration
number
required
Credential ID
string
required
Friendly name for the security key
object
required
Response from
navigator.credentials.create()string
required
Master password hash
Delete WebAuthn Credential
number
required
Credential ID to delete
string
required
Master password hash
Disable Two-Factor Provider
Disable a specific two-factor provider.number
required
Provider type to disable
string
required
Master password hash
Provider Types
0- Authenticator1- Email2- Duo3- YubiKey4- U2F (deprecated)5- Remember6- OrganizationDuo7- WebAuthn
Get Recovery Code
Retrieve the two-factor recovery code.string
required
Master password hash
Response
string
Recovery code for bypassing 2FA