MailSlurp logo

Build, test, and deliver email and SMS that work.

Create real inboxes and phone numbers for apps, tests, and AI agents. Verify signup, OTP, and notification flows, preview campaigns across Gmail and Outlook, then check inbox placement and sender health—from one visual dashboard and API.

Trusted by top companies worldwide

  • Broadcom
  • Scraper
  • Trivago
  • Avast
  • Wolt
  • Panasonic
  • Broadcom
  • Scraper
  • Trivago
  • Avast
  • Wolt
  • Panasonic
src/create-inbox.ts - MailSlurp
TScreate-inbox.ts
tests/e2e/create-inbox.ts
1import { MailSlurp } from "mailslurp-client";
2
3const mailslurp = new MailSlurp({ apiKey });
4const inbox = await mailslurp.createInbox();
5
6inbox.emailAddress;
7// "qa-482917@mailslurp.com"
mainTypeScript Inbox created

Real inboxes and phone numbers, ready on demand.

Give every app, test, or automated workflow its own email address or phone number. Send and receive real messages, keep the same address for ongoing conversations, or create a fresh one for each run from the dashboard or API.

Bring your inbox—or make one in seconds

Use a hosted MailSlurp address, connect Gmail or Outlook, or receive email on your own domain.

Explore inbox APIs

Add real phone numbers and SMS

Provision dedicated mobile and local numbers for SMS, OTP, and two-way messaging workflows.

Explore phone numbers

Route every message where it needs to go

Use webhooks, forwarding, auto-replies, and AI routing to move messages into your app or data stack.

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

Test every email journey, all the way to the inbox.

Create a fresh inbox or phone number, trigger signup, OTP, password reset, or a notification, then keep going in the same browser test. No mocks. No shared-account roulette. Just the flow your customer will use.

Test email and SMS without changing your stack.

Bring MailSlurp into the frameworks and CI pipeline you already use, then inspect every message, assertion, and failure in one visual dashboard.

Use any test framework

Playwright
Cypress
Selenium
WebdriverIO
pytest
JUnit

Add real email and SMS to Playwright, Cypress, Selenium, WebdriverIO, pytest, JUnit, and the tools already in your test suite.

Run every flow in CI

All message checks passed

3 successful CI checks

Create test inbox-ready
Details
Verify email journey-passed
Details
Capture SMS code-passed
Details

Create isolated inboxes and phone numbers per build, run tests in parallel, and block the merge when a real message journey fails.

See every result in one dashboard

Visual dashboard showing an SMS flow, message preview, assertions, and CI release proof

Inspect received email and SMS, OTPs, assertions, timings, and failures visually instead of piecing the story together from CI logs.

See what customers see—and where your email lands.

Send one real email and preview it across Gmail, Outlook, Yahoo, Apple Mail, iPhone, Android, desktop, and dark mode. Then test inbox placement, spam, authentication, and sender health before the campaign goes out.

Make every campaign look right—and land.

Send from Mailchimp, Klaviyo, HubSpot, Salesforce, or any email service provider. Preview the real email in Gmail, Outlook, Apple Mail, and mobile clients, then check inbox placement and sender health before your audience sees it.

Keep your current email platform

Test Mailchimp, Klaviyo, HubSpot, Salesforce, Brevo, Mailgun, or your own SMTP service without exporting the template or changing providers.

Preview on real devices

Email preview shown across desktop, tablet, and mobile clients

See the delivered email across Gmail, Outlook, Yahoo, Apple Mail, iPhone, Android, desktop, light mode, and dark mode.

Test inbox placement

Inbox placement

Campaign check

86%

inbox

GmailInbox
OutlookFocused
YahooSpam
SPFDKIMDMARC

Measure inbox, promotions, spam, junk, and missing outcomes across real provider mailboxes before the audience gets the message.

Monitor sender health

Sender health score with SPF, DKIM, and DMARC status checks

Track SPF, DKIM, DMARC, MX, reputation, blocklists, and domain changes so deliverability drift does not get the last word.

Give your AI agent an inbox of its own.

Connect Claude, ChatGPT, Gemini, or your own agent to real email addresses and phone numbers. It can read threads, collect OTPs, inspect attachments, and draft replies through MCP or API. You choose the inboxes; you can still see every move.

Claude, ChatGPT, Gemini, and custom AI agent providers
  1. 1Customer

    A real message arrives

    Email, SMS, attachments, and OTPs reach an identity assigned to the agent.

  2. 2Agent

    The agent acts

    It can read, summarize, draft, or reply within the permissions you choose.

  3. 3You

    Every outcome stays visible

    Review conversations, approve drafts, and step in when a message needs a human.

Delivery intake

deliveries@company.test

Listening

Messages0 received

Turn messy messages into useful data.

Invoices, support emails, PDFs, and SMS messages arrive messy. Use AI email parsing and simple schemas to turn them into JSON, tables, or labels. Send the result to agents, spreadsheets, databases, and apps. Less copy-paste; more things quietly getting done.

Real messages. Real teams. Fewer surprises.

"MailSlurp is a big win. We catch bugs in transactional emails before we send them."
Henry Mathias, CDOHenry Mathias, CDOSaaS Group
"Run a continuous smoke test of your user sign-up process using MailSlurp. Very powerful."
Rema Rocca, SRERema Rocca, SRETillyPay
"We use email webhooks to create automated customer interactions. MailSlurp makes that easy."
Adam Shiervani, CTOAdam Shiervani, CTOBuildJet

The complete email and SMS toolkit.

Develop and test real messaging flows, preview emails on real devices, protect deliverability, and connect AI agents—all from one platform.

Messages moving from an inbox through desktop and mobile previews to inbox placement results