
Receive verification codes
Wait for an incoming SMS and read the code your test needs to complete a login or verification step.
Receive real text messages, retrieve verification codes and finish the login flow. MailSlurp connects phone numbers, SMS APIs and email testing.

Trusted by teams at



Choose an available number in MailSlurp and manage it in the dashboard or through the API. Receive SMS for application workflows, verification codes and automated testing.
Check the current country availability, number capabilities and plan before provisioning. Give test flows their own numbers so incoming messages are easy to match.
Explore phone numbers and SMS

Wait for an incoming SMS and read the code your test needs to complete a login or verification step.

Inspect a message manually, then automate the same workflow when it needs to run repeatedly.

Use webhooks to notify your application when an SMS arrives.
Create an inbox and phone number for your test user. Complete the email signup, receive the SMS code and verify the final application state in your existing test runner.
Explore end-to-end testing
Select an available phone number and note its capabilities. Enter that number in the application flow you want to test.
Request the code or notification in your app. Use the dashboard, wait APIs or a webhook to retrieve the expected message.
Extract the code, complete the verification and assert the next screen. Repeat the workflow in CI using the SMS testing examples.
Create your free account, choose a phone-number plan and receive the messages your tests need.

Use a MailSlurp number as the test recipient and record the time before requesting the SMS. Wait for a fresh message to that number, retrieve its code and submit it in the same browser session. Check that the expected account is signed in after verification.
Keep the number reserved until the test finishes. Run the same receipt and account checks in Playwright, Cypress, Selenium or your existing test runner.
Follow the Playwright SMS test
For a Twilio Verify workflow, you can keep the service that sends the verification message and use MailSlurp to test its receipt and completion. For a broader SMS migration, map the number capabilities, outbound requirements and webhook handling before moving each workflow. The receive-SMS API guide covers bounded waits and webhooks.
Reserve a MailSlurp number with the capabilities your test needs, then enter it in your app and record the time before requesting the code. Wait for the current message to that number, inspect the sender and retrieve the code. Submit it in the same session and check the expected account. Keep the number reserved until verification finishes. See the SMS testing workflow.
Yes. Use a MailSlurp number as the test recipient, trigger the SMS from your application and retrieve the code to complete the verification. Check the current number capabilities and plan when selecting a number. Receive the current SMS code and complete verification.
Yes. Give the test user an inbox and a phone number, receive the messages and complete both steps in your existing test runner.
Create an account and choose the phone-number plan your workflow needs.
