MailSlurp logo

SMS API

SMS API and real phone numbers for OTP, verification, and testing

MailSlurp gives teams real phone numbers for verification, OTP, inbound processing, and release-grade testing across regions.

SMS API and phone numbers

Trusted by teams shipping customer messaging

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

Product features

MailSlurp capabilities for SMS APIs and phone-number workflows

Use the MailSlurp features that make the workflow work reliably in production, not just in a quick demo.

Provision real phone numbers by country and workflow

Create numbers according to region and plan availability instead of sharing one handset or relying on mock SMS endpoints.

  • Provision numbers for staging, CI, and app environments
  • Keep number ownership explicit across QA and operations
  • Expand into regional coverage as workflows mature

Receive SMS through wait APIs, reads, and webhooks

MailSlurp gives teams deterministic receive primitives for inbound SMS instead of manual handset checks or mailbox-style polling.

  • Wait for the latest SMS in code when timing matters
  • Push inbound messages into webhook-driven handlers
  • Keep message timing and metadata available for debugging

Compliance and sending readiness per number

Manage emergency-address, consent, and other sending prerequisites on the number itself before production traffic depends on it.

  • Prepare numbers for compliant send usage
  • Keep sending prerequisites visible with the number record
  • Separate provisioning from downstream message logic cleanly

Per-number history, threads, and OTP extraction

Inspect sent and received message history for each number, pull OTP codes from real payloads, and keep durable records when a flow fails.

  • Inspect sent and received SMS per number
  • Parse one-time codes from inbound payloads
  • Keep message records for verification and support workflows

Key workflows

High-value workflows for SMS APIs and phone numbers

Start with the workflow you need most, then expand the same MailSlurp setup into adjacent use cases once the first route is working.

Workflow 01

Run SMS verification and signup checks

Validate account verification flows with real numbers, deterministic waits, and message extraction in code.

MailSlurp product screenshot
MailSlurp product workspace showing email, phone, dashboard activity, and developer automation

Workflow 02

Support password recovery and fallback messaging

Use SMS when the product needs a second verification channel or a recovery path that cannot depend on email alone.

Workflow 03

Receive inbound SMS in application workflows

Capture and process inbound messages through APIs and webhooks instead of unmanaged inboxes or manual review.

MailSlurp product workspace showing email, phone, dashboard activity, and developer automation

Developer integration

Integrate real phone numbers and OTP checks without custom glue code

Provision numbers, receive SMS, and validate mobile verification flows with SDKs, webhooks, and deterministic wait helpers.

  • Regional number provisioning via API
  • Wait-for-SMS helpers for OTP workflows
  • Webhook support for downstream handling

Use real numbers

Move SMS workflows from mock coverage to real verification checks

Start with one critical mobile flow with real numbers and deterministic waits, then expand into broader SMS operations once the base path is trusted.