Customer Notifications Unified Messaging API Startups Developer Guide

Set Up Customer Notifications for Your Startup in One Afternoon

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

Welcome emails, login codes, order updates, and alerts: plan and build every customer notification for your startup in one afternoon with a single API.

Why This Matters

Notifications are easy to leave until last. Then launch day arrives, and you realise you need a welcome email, a login code, a payment receipt, and a delivery alert, each with different requirements. If each one needs a different provider, "one more feature" turns into days of work.

When WhatsApp, SMS, OTP, and email are under one API, a full notification system fits in an afternoon.

Hour 1: Plan Your Notifications

List every moment your product needs to talk to a customer, and choose a channel for each.

| Event | Channel | Backup |

|---|---|---|

| Account created | Email | None needed |

| Login or verification code | OTP by SMS or WhatsApp | The other one |

| Payment received | Email | WhatsApp |

| Order shipped | WhatsApp | Email |

| Delivery problem | WhatsApp | SMS |

| Support follow-up | Email or WhatsApp | The other one |

Keep the list short. You can add events later.

A tip on SMS: the Starter plan includes 100 SMS a month, so keep SMS for urgent messages and fallbacks, and use email and WhatsApp for everything else.

Hour 2: Connect and Send Your First Message

  1. Create your SendAPI account and get your API key from the dashboard.
  2. Pair your WhatsApp number by scanning a QR code. No Meta Business verification is needed.
  3. Store the key as an environment variable, never in your code.
  4. Send a test message on each channel.
export SENDAPI_KEY="YOUR_API_KEY"

If you are on a trial, you can only send to the number on your paired WhatsApp session, so use your own phone for testing. A trial allows 10 WhatsApp messages a day and 2 SMS in total.

Hour 3: Wire Events to Messages

Build one small function that maps each event to a channel and a message. Here is the idea in Node.js, simplified to show the pattern. The send function stands for a call to the messaging API.

const rules = {
  account_created: { channel: 'email', text: 'Welcome aboard!' },
  order_shipped: { channel: 'whatsapp', text: 'Your order is on its way.' },
  delivery_problem: { channel: 'whatsapp', text: 'There is a delay with your delivery.' },
};
 
async function notify(event, customer) {
  const rule = rules[event];
  const to = rule.channel === 'email' ? customer.email : customer.phone;
  return send({ channel: rule.channel, to, text: rule.text });
}

Hour 4: Add a Fallback and Test

  • Add a fallback for important messages, so a failed WhatsApp message goes by SMS or email instead.
  • Test with real numbers in the formats your customers use.
  • Check that every message reads well on a small phone screen.
  • If you hit a rate limit, the API returns a 429 response with a Retry-After header. Wait and retry, doubling the wait each time, up to a limit.

Good Habits From Day One

  • Collect permission. Make sure customers agree to each channel.
  • Personalise. Use names and order details.
  • Keep your volume steady, and spread large sends through the day.
  • Protect your key. Keep it on the server and never in front-end code.
  • Check your plan limits. Starter allows 60 requests a minute and keeps logs for 7 days.

How SendAPI Helps

SendAPI gives you WhatsApp, SMS, OTP, and email through one API from $9.99 a month, so a startup can launch with every notification in place.

  • One integration and one place to look at your logs, instead of three accounts and three sets of documentation
  • Rate limit headers on every response, so your code can see how many requests remain
  • Webhooks for delivery receipts and incoming WhatsApp messages
  • Repeat detection that blocks the same message going to the same number over and over, while leaving ordinary traffic to different customers alone
  • Contact checking, so you can see whether a number is on WhatsApp before you send