How to enable 2FA (2-factor authentication) in Postman
2-factor authentication (2FA) adds one more layer to your login process, but it’s worth it. It helps protect your account even if someone steals your password. When trying to log in, after you type in your password, you’ll also need to enter a code from your phone or app: even if someone knows your password, they still can’t get in, making it way harder to hack.
This article will help you set up 2FA using Postman. If you rather do it via Multilogin X CLI tool, follow our CLI article How to enable 2FA in CLI.
How to set up Google Authenticator
Currently, Multilogin X 2FA only supports Google Authenticator.
- Download Google Authenticator in your app store (iOS, Android)
- Open the app → log in to your Google account
- Hit the plus (+) icon at the lower right area
- Choose “Scan a QR code” → scan your 2FA QR code
- When done, confirm and save your codes
How to use 2FA endpoints with Postman
How to set up 2FA for a user
- Go to the Documenter page and locate or import the 2FA endpoints
- Use the “Set up 2FA” endpoint to get your
device_id
andotp_url_bytes
objects - Copy the
otp_url_bytes
→ paste it in Bytes-to-QR converter - Click “Decode” → copy the URL that will be generated
- Go to QR Code Generator and paste it → a QR code will be shown
- Scan the QR code → you will see the entry in your Google Authenticator app

How to enable 2FA for a user
- Go to “Enable 2FA” endpoint → head over to “Body”
- Use your previously obtained
device_id
- Type the code from Google Authenticator in
totp_code
→ press “Send” - Your backup codes will be generated → store them in a safe place

How to set up 2FA for a new device
- Get the new
device_id
via “Set up 2FA” endpoint - Go to “Set up new device for 2FA” endpoint
- Fill in the new
device_id
- Insert the code from Google Authenticator in
totp_code
→ press “Send” - A success message will appear in the output

How to enable/disable 2FA from workspace
- Go to “Enable/Disable 2FA for workspace” endpoint
- On the “Body” tab → select
true
orfalse
to activate/deactivate it - Press “Send” → a confirmation message will appear

How to remove 2FA from a device
- Go to “Revoke device for 2FA” endpoint
- Go to “Body”
- Fill in the
device_id
you wish to remove → press “Send” - A success/failure message appears as output
