OTP Detection

SigninID automatically parses email content to find verification codes, one-time passwords, and magic links.

Why this matters

The detected_otp field automatically extracts verification codes from email content, eliminating the need for complex regex parsing in your tests. You directly get the code you need to finish the signup flow.

How It Works

  1. Scans email body (HTML and Text) for OTP-related keywords
  2. Extracts 4-8 digit/character codes near those keywords
  3. Filters out false positives (years, sequences, phone numbers)
  4. Returns the most likely verification code in the API response

Detected Patterns

Keywords Detected

  • • verification code / number
  • • one-time password / OTP / PIN
  • • security code / confirmation code
  • • login code / access code
  • • authentication code / passcode
  • • magic link / token

Code Formats

  • • 6-digit numeric (most common): 123456
  • • 4-digit numeric: 1234
  • • 8-digit numeric: 12345678
  • • Alphanumeric (6-8 chars): A1B2C3

Examples

Email: "Your verification code is 847291. It expires in 10 minutes."

Result: detected_otp: "847291"

Email: "Enter this OTP to confirm: ABC123"

Result: detected_otp: "ABC123"

Email: "Welcome to our service! Click here to get started."

Result: detected_otp: null (no code found)