Auto-extract 2FA/MFA confirmation codes sent by email
The OTP extraction API pulls confirmation codes out of email bodies. Common formats need no regex, and you can pass a pattern for other formats. Test logins and two-factor flows that send codes by email, with no manual entry.
/addresses/{address}/emails/{id}/otp extracts the confirmation code from the email body and returns it.
4 to 8 digit numbers and hyphenated alphanumeric codes such as ABCD-1234. Near words such as "code", space-separated digits (123 456) and alphanumeric codes (A1B2C3) are also picked up. For other formats, pass a pattern (regex). If the code arrives as a URL, use the link extraction API.
Test logins that use confirmation codes sent by email, without typing the code. Authenticator app (TOTP) codes are not covered.
Also useful in tests that check code expiration, resend limits, brute-force protection, and other requirements of your app.
Python (requests)
Get started with the free plan today. No credit card required.
Free plan: up to 100 emails/month and 5 addresses