SMS engineering

How SMS Delivery Works: From API Call to Handset

Follow a text message from your API request through the provider, carriers, and SMSC to the user's phone, and learn where delays and failures happen along the way.

Updated · 3 min read

When you call an SMS API, it feels instant: you send a request and get back a message ID. Behind that ID, the message travels through several systems before it reaches a phone. Knowing the path helps you understand delivery reports, delays, and failures.

The path of a message

  1. Your application calls the provider's HTTP API with the destination number, sender ID, and text.
  2. The SMS provider validates the request, checks your balance and limits, queues the message, and picks a route.
  3. The route may go directly to the destination mobile operator or through one or more intermediary carriers, usually over SMPP, the standard protocol between messaging systems.
  4. The operator's SMSC (Short Message Service Centre) receives the message, applies its own filtering, and tries to deliver it to the handset.
  5. The handset receives the message when it is switched on and in coverage.
  6. The delivery report travels back the same way: the SMSC reports the result to the carrier, which reports to the provider, which calls your webhook.

Where delays happen

  • Provider queues, when you send in bursts larger than your throughput.
  • Intermediary carriers, each adding a hop, a queue, and a chance of loss. Direct or local routes have fewer hops.
  • Operator filtering, which inspects sender IDs and content.
  • The handset, which may be off, out of coverage, or roaming. The SMSC stores the message and retries for a period before giving up.

A message can be "sent" from your provider's point of view seconds before it is actually delivered, or long before it fails.

Where failures happen

StageTypical failures
Your requestInvalid number format, unsupported destination, missing sender ID
ProviderRate limit, insufficient balance, blocked content
Route / carrierNo route to destination, carrier rejected traffic
OperatorUnregistered sender ID, spam filtering, unknown subscriber
HandsetPhone off, out of coverage, storage full

Delivery reports

The delivery report (DLR) is how you learn the outcome. Common final states are delivered, undelivered or failed (with an error code), and expired (the SMSC gave up after its retry period). Some routes return reliable reports; others return delayed or generic ones. That is why the quality of delivery reports is itself something to evaluate. See SMS delivery reports explained.

Concatenated messages

Long messages are split into parts, each carrying a header so the phone can join them. Parts travel separately and can arrive out of order or, rarely, partially. Keep important messages, especially OTPs, in a single part. See SMS character limits.

Why the route matters so much

Two providers can send the same message to the same number with very different results, because they use different routes. A direct route to the destination operator usually means faster delivery, better sender ID handling, and more accurate delivery reports. That is why you should test providers in the specific countries and networks you care about. For an example, see Egypt's mobile networks.

What you control

  • Send correctly formatted E.164 numbers.
  • Register sender IDs where required.
  • Keep message content clean and in one segment when possible.
  • Spread bulk sends to stay within throughput limits.
  • Handle delivery webhooks reliably; see SMS webhooks.