Skip to main content
Automatically fetch 2FA verification codes from email, Slack, or Twilio SMS messages—no manual code entry required.
For TOTP codes from authenticator apps, see TOTP Integration.

Methods

All methods follow the same pattern:
  1. Fetch messages from the source (email inbox, Slack channel, or Twilio SMS)
  2. Extract the 2FA code from matching messages
  3. Store the code in the specified output_variable_name
  4. Use {output_variable_name} in subsequent actions to input the code

Setup

  1. Go to the Optexity dashboardIntegrations
  2. Click the desired integration → Connect
  3. Follow the prompts to grant access

Twilio SMS

  1. Log in to your Twilio account and open the Twilio Console
  2. Go to API Credentials and copy your Account SID and Auth Token
  3. Add or select a Twilio phone number that will send or receive verification texts
  4. Connect the Twilio integration in Optexity using the same credentials and phone number

Email 2FA

Fetch verification codes from email messages:

Properties

Use integration_email_address when the connected mailbox is different from the mailbox receiving the 2FA email (for example, alias/forwarding setups).

Slack 2FA

Fetch verification codes from Slack messages:

Properties


SMS 2FA

Fetch verification codes from Twilio SMS messages:

Properties


Common Properties

These apply to Email, Slack, and SMS 2FA:
The action polls for the 2FA code every check_interval seconds until the code arrives or max_wait_time is reached.

Using the Code

Reference the extracted code in subsequent actions: