MailSlurp logo
9:41
MailSlurp
iMessageToday 9:32 AM
Your MailSlurp verification code is 482913.
Code received.
+
iMessage

Test SMS OTP verification

Create real phone numbers for QA, staging, and CI, receive OTP messages through MailSlurp APIs, extract the code, and assert signup, login, recovery, and MFA journeys without manual phones.

Trusted by top companies worldwide

  • Broadcom
  • Scraper
  • Trivago
  • Avast
  • Wolt
  • Panasonic
  • Broadcom
  • Scraper
  • Trivago
  • Avast
  • Wolt
  • Panasonic

SMS dashboard

Inspect SMS verification evidence in the app

MailSlurp gives developers API-first SMS OTP testing, plus a dashboard for teams that need to inspect received SMS, phone identity, message events, organization access, and support-ready evidence.

MailSlurp webapp phone detail page showing SMS tabs and received SMS message rows
9:41
MailSlurp
iMessageToday 9:32 AM
+
iMessage

Provision real numbers for end-to-end SMS tests

Assign a phone number to each environment, country, or test run. Trigger your product's signup, login, MFA enrollment, or account recovery challenge, then keep the phone identity and received message attached to the test result.

Receive the OTP, parse the code, and assert the verified state

Wait for the inbound SMS, extract the one-time code, submit it through the browser or API flow, and fail clearly when delivery is late, the template changes, or retry controls allow the wrong code.

SMS and OTP verification API workflows MailSlurp supports

Turn SMS verification into a repeatable API flow: provision a number, trigger a challenge, receive the SMS, parse the OTP, submit it, and capture the final auth outcome.

Unify OTP verification checks

Use one workflow for SMS OTP, email fallback, magic-link recovery, and MFA verification instead of splitting auth evidence across tools.

Open OTP testing guide

Provision test numbers

Create programmable numbers for QA, staging, regional verification, and CI runs without shared devices or unmanaged test SIMs.

Open phone number SMS service

Test verification challenges

Exercise signup, login, MFA, and recovery checks so verification policy, attempt limits, and cooldown windows stay testable.

Open phone verification API

Receive and parse OTP codes

Wait for inbound SMS, extract the numeric code, inspect message content, and assert the completed signup, login, or recovery state.

Open SMS API guide

Cover authentication flows

Use the same model for signup, MFA enrollment, account recovery, payment confirmation, magic links, and fallback email checks.

Open OTP testing solution

Automate SMS OTP in Playwright

Connect browser automation to real phone numbers, email fallback, and OTP extraction so UI tests can submit the code and keep useful CI evidence.

Open Playwright OTP guide

Integrate MailSlurp Seamlessly

Integrate with any framework

Official plugins and SDKs for all major programming languages, frameworks, and test platforms. All functionality available via API or dashboard.

Flexible integration patterns

CI/CD Native

MailSlurp fits right into your existing development, testing, and CI/CD workflows. Deploy and iterate with confidence and actionable feedback.

SMS OTP testing workflows at global scale

Mobile networks

20+

Use real network behavior for verification checks.

Verification coverage

OTP + MFA

Cover signup, login, account recovery, and MFA journeys.

Developer APIs

SDKs

Create numbers, wait for SMS, and extract OTPs from code.