The safe way to migrate SMS providers is to run the new provider in shadow mode first: build, validate and route every message through the new path, compare it against what the old path did, and only then send real texts through it, a few tenants at a time. Keep a flag that sends traffic back the moment a number goes wrong.

One thing makes SMS different from other API migrations. You can't mirror production traffic to a second provider, because a mirrored text is a real text and the recipient gets it twice. So SMS shadowing compares everything except the final delivery. This guide covers what to compare, how to stage the cutover, and what a rollback has to include.

What "shadow" means for texting

For a read-only API, shadow traffic means duplicating requests. For SMS it means duplicating the decisions your platform makes around the send:

  • the payload you'd build (recipient format, body, segment count)
  • the pre-send checks (opt-out, validation, quiet hours, consent flag)
  • the routing choice (which number or sender would send it)
  • the response handling (how you'd map the reply or error to your own statuses)

The final handoff goes only to an allow-list of numbers you own. Everything else is recorded and compared, not sent. That gives you real production inputs without a single duplicate text.

Step 1: put a router in front of both providers

Don't call either provider directly from feature code. Add one send(message) interface with two adapters behind it, and a per-tenant setting that picks the adapter. Every later step is a change to that setting, not a code deploy.

A minimal router decision has three outputs: old, new, or shadow (old sends, new is dry-run and compared). Store it per tenant, so one customer can move without the others.

Step 2: dry-run the new path and diff it

In shadow mode the old provider sends. In parallel, your code runs the new adapter up to the point of sending and writes a comparison record.

CompareWhat a mismatch tells you
Segment countYour encoding or splitting differs from the new provider's rules
Recipient formatAn E.164 normalization gap (see below)
Pre-send verdictOpt-out or quiet-hours logic differs between paths
Sender chosenA number or routing map is missing on the new side
Error mappingYour status codes don't cover a new error

Run it long enough to cover your slow cycles: a month-end billing run, a weekly campaign, an overnight batch. A quiet Tuesday proves little.

Mismatches in segment count deserve extra attention, because segments are what you're billed for. A single emoji changes a 160-character segment to 70, so an encoding difference quietly changes cost.

Step 3: settle opt-outs and registration before real traffic

Two items block a safe cutover no matter how good the diff looks.

Opt-outs. A contact who texted STOP on the old setup must stay blocked on the new one. Export your own opt-out list, and before any send through Ready from another tool or a migrating provider, check GET /v1/opt-outs/:phone for the number. The plain list endpoint, GET /v1/opt-outs, covers only this account's opted-out contacts, so it isn't a complete mirror. Add ?scope=all to include the account's whole Ban list. The per-number check is the one to trust. See the opt-outs docs.

Registration. Each customer needs a registered 10DLC brand and campaign on the new side, and approval takes time, so file early. Our 10DLC registration API guide covers the flow. If you're also moving numbers, read why number ports get rejected first, since a port can be the longest step in the whole plan.

Step 4: cut over in cohorts

Move tenants in widening rings, and let each ring prove itself before the next one starts:

  1. Your own test numbers and an internal account.
  2. A handful of low-volume, friendly tenants.
  3. A slice of mid-volume tenants, which tests your throughput limits before the largest ones depend on them.
  4. The largest and most sensitive tenants, last.

For each ring, set clear gates in advance. Examples of gates, which you should set against your own baselines: delivery status rates within an agreed band of the old path, no unexplained error codes, no rise in support tickets about missing or duplicate texts. Write the gates down before the ring starts, so you aren't arguing about the numbers once traffic is live.

Use idempotency throughout. Send an Idempotency-Key header with each POST /v1/messages, derived from your own message ID, so a retry during the cutover can't produce a second text. See deterministic idempotency keys for SMS.

Step 5: plan the rollback before you need it

A rollback has more parts than flipping a flag.

  • Outbound: the per-tenant router setting goes back to old. This only works if the old provider's account, numbers and registrations are still live. Don't cancel anything until the last ring has run cleanly for a full cycle.
  • Inbound: replies go to whichever provider owns the number. If a tenant's number moved, a rollback means replies and STOP messages may arrive at the new side. Keep webhook handlers for both providers running, and dedupe by message ID.
  • In-flight messages: a text accepted by the new provider just before the flip will still deliver and report a status later. Your status handler has to accept updates from both sides for a while.

Ready doesn't fail over between providers, so a rollback to your old provider is something your router does, not something the API does for you.

A worked example

This is an example with assumed numbers. A platform has 40 tenants and 200,000 segments a month. It runs shadow mode for 30 days, and the diff shows 0.5% of messages differ in segment count, all from curly quotes in templates. Ready swaps curly quotes, long dashes and ellipses for plain ones before sending, so those never change the count on the new side; the team updates its estimate to match. Ring 1 is two internal numbers, ring 2 is 4 tenants, ring 3 is 15 and ring 4 is the remaining 21. Each ring runs for a week. When ring 3 shows a spike in refused sends, the team rolls those 15 tenants back in a minute, finds a missing sender mapping, fixes it and repeats the ring.

FAQ

Can I send the same message through both providers to compare delivery? No. The recipient would get two texts. Compare everything up to the send in shadow mode, and compare delivery only for sends to numbers you own.

How long should shadow mode run? Long enough to cover your slowest billing and campaign cycle, so at least a full month for most platforms. The goal is to see your odd cases, not just the common ones.

Do I need to migrate webhooks too? Yes. Handle callbacks from both providers during the overlap, verify signatures, return 200 fast, dedupe, and enqueue the work. The webhook docs cover the Ready side.

Next step

Build the router and the diff first, because they cost little and every later step depends on them. If your current code uses another provider's SDK, migrating Twilio-style SMS code to Ready shows the code changes, and you can create an account to try the new path.