MailSlurp logo

Real inboxes and phone numbers. Built for code, tests, and agents.

Create email addresses and phone numbers on demand. Test OTPs and message flows, connect agents and automations, preview every email, and see where it lands.

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

Programmable email addresses and phone numbers.

Create, reserve, and control real inboxes and phone numbers from code or the web app. Send and receive messages, keep long-lived identities, or create a fresh one for every test.

Connect Gmail, Outlook, custom domains, and unlimited inboxes

Connect messages to agents, databases, web apps, or anywhere else

Add webhooks, auto-replies, forwarding, and AI routing

Playwright signup test
$pnpm test tests/signup.spec.ts
Creating a MailSlurp inbox and phone number...
Triggering signup in the browser...
Waiting for the verification SMS...
MailSlurp listener is ready

Test email and SMS end to end.

Create a real test identity, receive the OTP or link, submit it in the browser, and keep the result with your CI run. Test the flow your customer actually uses, not a mocked shortcut.

Fit message checks into test suites and CI/CD pipelines

Separate development, staging, and production access

Use powerful test helpers across the frameworks you already run

Device rendering and deliverability in one workflow.

Preview emails on Gmail, Outlook, Yahoo, Apple Mail, iPhone, Android, desktop, and dark mode. Catch rendering and delivery problems before they reach customers.

Test inbox placement against real provider mailboxes

Monitor authentication, reputation, and blocklists

Real devices and providers to test with

Delivery intake

deliveries@company.test

Listening

Messages0 received

Turn email and SMS into structured data.

Use AI or content schemas to turn messages and attachments into predictable fields, labels, and tables. Send the result to agents, databases, spreadsheets, or your own application.

Read, label, and categorize messages and attachments

Connect results to spreadsheets, databases, and external tools

Test and refine extraction rules before using them at scale

Trusted by thousands of satisfied customers.

"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

Built for teams that need control.

Keep inboxes, phone numbers, environments, and access policies organized as more people and systems depend on MailSlurp.

Shared team inboxes

AMJRSK

Give every team one inbox with shared ownership and durable message history.

Dev / staging / prod

Dev
Staging
Prod

Keep email and phone resources separate across dev, staging, and production.

RBAC permissions

Create inboxesAllowed
Read messagesAllowed
Manage billingRestricted

Control organization, team, and environment access with precise roles.

Give your next test, app, or agent a real inbox.

Start free with real email addresses and phone numbers. Add rendering, deliverability, automation, and team access as you grow.

Email inbox and phone connected to code, a passed test, and an AI agent