Multichannel Fallback WhatsApp API SMS API Email API

Multichannel Fallback: WhatsApp, Then SMS, Then Email

By Nimana · Last updated November 12, 2026 · 3 min read

Important messages should never get lost. Learn how to build a fallback that tries WhatsApp, then SMS, then email, with a code example and safety rules.

Why This Matters

No single channel reaches everyone every time. A customer may not be on WhatsApp. Their phone may be off. A number may be mistyped. For a casual message, that does not matter. For a login code, a delivery notice, or an appointment reminder, a message that never arrives is a real problem.

A fallback solves it: if the first channel fails, your system automatically tries the next one. When all three channels live under one API, building that takes one integration instead of three.

The Order of Channels

The usual order goes from cheapest and most personal to the most universal:

  1. WhatsApp first. It is conversational, customers read it quickly, and replying is easy.
  2. SMS second. It reaches almost any phone, with no app needed.
  3. Email last. It is slower, but it reaches people who have no phone number on file or whose number does not work.

For urgent messages like login codes, you might put SMS first. Choose the order that fits the message.

How It Works

  1. Check the number. If it is not on WhatsApp, skip straight to SMS.
  2. Send on the first channel and wait for the delivery result.
  3. If it fails or is not delivered in time, send on the next channel.
  4. Stop as soon as one succeeds. Never send on all three.
  5. Log what happened, so you can see which channels your customers actually use.

A Code Sketch

Here is the idea in Node.js, simplified to show the pattern. The send function stands for a call to the messaging API.

async function deliver(customer, message) {
  const channels = ['whatsapp', 'sms', 'email'];

  for (const channel of channels) {
    const to = channel === 'email' ? customer.email : customer.phone;
    if (!to) continue;

    const result = await send({ channel, to, text: message });
    if (result.ok) {
      console.log(`Delivered on ${channel}`);
      return channel;
    }
  }

  console.log('All channels failed');
  return null;
}

In a real system, decide how "delivered" is detected for each channel, set a wait time before moving to the next one, and test with your own number first.

Rules That Keep It Safe

  • Never send on all channels at once. Wait for the first to fail. Duplicates annoy customers.
  • Set a sensible wait time. A login code might wait 30 seconds; a reminder can wait several minutes.
  • Respect consent per channel. A customer who agreed to WhatsApp messages may not have agreed to SMS or email. Record permission for each.
  • Keep the message the same. The customer should recognise it as one message, not three different ones.
  • Adapt the format. SMS is plain text, and email can carry more detail, so adjust the wording slightly for each.
  • Mind the cost. Use fallbacks for messages that justify it.

How SendAPI Helps

SendAPI offers WhatsApp, SMS, and email through one API for $9.99, so a fallback is one loop instead of three integrations.

  • Contact checking, so numbers that are not on WhatsApp can go straight to SMS instead of failing first
  • Repeat detection that blocks the same message going to the same number over and over, which protects customers if a fallback bug fires twice
  • Per-minute and per-day rate limits on every session, so retries cannot spike your volume