Step 1: Add Email MFA as an authentication method
- Go to the Identities page and select your identity.
- Choose Preset authentication — the available authentication flows will appear below.
- Click the Add flow button to create a new authentication flow.
- Enter a name for the flow and click Add.
- Select the Email MFA checkbox under Authentication Methods. Include any other authentication methods needed for this login flow.
- Click Save Changes in the top-right corner.
Step 2: Create an identity that uses the Email MFA authentication method
After creating the Email MFA authentication method:- Create a new identity.
- In the credentials window, choose the Email MFA authentication method.
- You will receive a dedicated mailbox (for example,
zesty-vale7820@mfa.anchorbrowser.io). - Set up a forwarding rule from your mailbox to your dedicated mailbox.
- Optionally, test the forwarding flow using the detailed instructions.
Forwarding setup details
Official help for forwarding in common mail clients:API Reference
Use the mailbox and identity email APIs to provision an inbox, attach it to an identity, verify forwarding, and read OTP emails programmatically. All endpoints require theanchor-api-key header.
Typical flow
- Create an authentication flow that includes
email_mfainmethods. - Create a mailbox to get a dedicated forwarding address.
- Create an identity and pass the mailbox
idasmailboxId, plusauthOptionIdfor the flow you created. - Send a probe email to verify delivery.
- List or read emails to retrieve OTP codes.
Example: provision mailbox and create identity
Example: test forwarding and read OTP emails
After setting up your email forwarding rule, send a probe to confirm delivery, then poll for incoming messages. Use thesince query parameter to fetch only emails received after a given ISO timestamp.
During identity creation and agent sessions, Anchor automatically reads OTP codes from the mailbox. Use the list and get email endpoints when you need to handle codes in your own integration.
Related API docs
Create Mailbox
Provision a dedicated forwarding address
Enable Identity Mailbox
Attach a mailbox to an existing identity
List Identity Emails
Poll for forwarded OTP emails
Send Mailbox Probe
Verify forwarding is working

