MailSlurp logo

Real phone numbers. Automated SMS tests.

Receive verification codes on dedicated mobile numbers and read them from your test suite. Test signup, OTP, MFA and account recovery without passing a handset around the team.

Mobile phones representing real SMS verification

Trusted by teams at

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

Test the code that actually arrives.

Submit a MailSlurp number in your application, wait for its SMS and extract the one-time code. Enter it in the browser and check that your customer can complete verification.

Cover new-account verification, two-factor login and account recovery using real delivered messages.

Follow the SMS OTP guide
A phone and lock representing SMS authentication
Bounded waits for incoming messages

Wait, read and extract

Use a bounded wait for inbound SMS, inspect its sender and body, and extract the OTP for the next step.

Playwright, Cypress, Selenium and k6

Keep your test framework

Bring SMS into Playwright, Cypress, Selenium or your own API tests. Run the same verification journey in CI.

See the Cypress guide
Email inboxes for combined email and SMS tests

Cover email and SMS together

Test email confirmation and SMS verification in one suite, including fallback and recovery journeys.

Explore email and SMS testing

Dedicated numbers for your team and test environments.

Choose real, non-VoIP mobile numbers across supported countries and networks. Allocate numbers to staging environments, test workers or customer journeys and keep incoming SMS in one place.

Use number pools and locks to reserve a number during a test. Review current availability and pricing in the app before adding numbers, then retain or release them to suit your workflow.

Dedicated SMS numbers across supported mobile networks and countries
Countries supported by MailSlurp phone numbers
CountryCountry and calling code
United StatesUS (+1)
United KingdomGB (+44)
AustraliaAU (+61)
CanadaCA (+1)
EstoniaEE (+372)
Hong KongHK (+852)
PolandPL (+48)
SwitzerlandCH (+41)
PortugalPT (+351)
NetherlandsNL (+31)
IsraelIL (+972)
FinlandFI (+358)
SwedenSE (+46)
Custom regions available on request.

Control the full workflow from code.

Provision or assign a number, wait for incoming SMS and read its contents through the API. Keep message history for debugging, or deliver inbound events to your application with webhooks.

Use official SDKs or the REST API. Your tests control when to reserve a number, complete verification and release it for the next run.

Read the SMS API docs

From phone number to passing test.

Connect a real SMS verification step to the tests you already run.

Choose a dedicated test number
01

Choose your number

Create a free account, review available numbers and pricing, then add a number for your test environment.

Receive an SMS verification code
02

Receive the SMS

Trigger your app's verification flow. Wait for the message through the API and extract its code.

Complete verification in your browser test framework
03

Complete verification

Enter the code, assert the result and release the number's reservation when the test finishes.

Questions about phone numbers and SMS testing

Are MailSlurp phone numbers real mobile numbers?

Yes. MailSlurp provisions dedicated, non-VoIP mobile numbers across supported networks and countries. Use them to receive real SMS verification messages, extract OTPs in code, and test signup, login, MFA, and account recovery from end to end. Explore the SMS verification API.

Can I control a real phone number in an automated OTP test?

Yes. Create or assign a MailSlurp phone number, reserve it for the current test, submit it to the application, wait for the inbound SMS, extract the OTP, complete the verification step, and release or retain the number according to your test policy. Run an OTP test with Playwright. Run an OTP test with Cypress.

Do automated tests have to share the same phone number?

No. Allocate numbers by environment, worker, suite, tenant, or customer journey. Number pools, locks, tags, and message history keep parallel runs isolated and make failures easier to trace. Review the SMS verification API workflow.

Can one test cover email and SMS verification together?

Yes. MailSlurp provides programmable inboxes and phone numbers under one API model, so a test can validate email confirmation, SMS fallback, OTP, MFA, and recovery paths in the same suite. Explore programmable email and SMS APIs. Explore authentication testing.

Can I keep a phone number after the OTP test finishes?

Yes. Use short-lived allocation for isolated test runs or retain a dedicated number for stable environments, regional journeys, support workflows, and repeatable product testing. Open the phone and SMS docs.

Put SMS verification in your test suite.

Create a free account and explore the phone number dashboard. Review number availability and pricing before adding your first test number.

Email and SMS verification for automated tests