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.Master password hash for verification
Response
Base32-encoded secret key
SVG QR code for scanning
Token for completing setup
Enable Authenticator
6-digit code from authenticator app
Secret key from setup
Verification token from setup
Disable Authenticator
Provider type (0 for Authenticator)
Secret key
Verification token
Email 2FA
Get Email Configuration
Master password hash
Send Setup Email
Email address to use for 2FA
Master password hash
Enable Email 2FA
Email address for 2FA
6-digit code from email
Master password hash
Duo Security
Get Duo Configuration
Master password hash
Enable Duo
Duo client ID
Duo client secret
Duo API hostname
Master password hash
Organization Duo
Get Organization Duo Configuration
Organization ID
Enable Organization Duo
Organization ID
Duo client ID
Duo client secret
Duo API hostname
Disable Organization Duo
Organization ID
Provider type (6 for OrganizationDuo)
YubiKey
Get YubiKey Configuration
Master password hash
Enable YubiKey
First YubiKey OTP (12 characters)
Second YubiKey OTP (optional)
Third YubiKey OTP (optional)
Fourth YubiKey OTP (optional)
Fifth YubiKey OTP (optional)
Whether NFC is supported
Master password hash
You can register up to 5 YubiKeys. The first key is required, others are optional backups.
WebAuthn (FIDO2)
Get WebAuthn Configuration
Master password hash
Start WebAuthn Registration
Master password hash
Response
Returns a challenge object compatible withnavigator.credentials.create().
Complete WebAuthn Registration
Credential ID
Friendly name for the security key
Response from
navigator.credentials.create()Master password hash
Delete WebAuthn Credential
Credential ID to delete
Master password hash
Disable Two-Factor Provider
Disable a specific two-factor provider.Provider type to disable
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.Master password hash
Response
Recovery code for bypassing 2FA