Expertise technical

Throttling SMS in Morocco: How fast can you really send your messages

Frequency sending sms throttling: technical guide with code examples for developers in Morocco.

Throttling SMS in Morocco: How fast can you really send your messages
Table of Contents
  1. You must send a marketing campaign to 100,000 Moroccan customers for the sale period. You run a simple PHP script with a loop `foreach` that runs a HTTP POST query for each client.
  2. Why sending too fast triggers a throttling
  3. Typical API REST vs SMPP
  4. How to Spread a Mass Send (Concrete Calculation)
  5. Planning your picks (Ramadan, Black Friday) accordingly

You must send a marketing campaign to 100,000 Moroccan customers for the sale period. You run a simple PHP script with a loop `foreach` that runs a HTTP POST query for each client.

Result: After a few seconds, the API rejects you with an error HTTP 429 Too Many Requests. The few thousand messages that have passed are blocked with a status Pending for 2 hours, and your delivery rate collapses.

This is the effect of Throttling (network congestion). Whether by API security or by physical limitation of telecom operators, sending SMS is not an unlimited stream. Here are what are the real sending speeds in Morocco, and how to design your systems to meet them.

Why sending too fast triggers a throttling

There are two major congestion gaps in the sending architecture:

  1. Rate Limiting HTTP: To protect its servers from DDoS attacks, the provider [SMS API] (/fr/api-sms-maroc/) limits the number of incoming requests per second (RPS) for a given API key.
  2. Maroc Operators’ SS7 Throttling Network Limit: Maroc Telecom, Orange and inwi allocate a specific bandwidth (a Transactions Per Second – TPS) to each provider’s route.If the provider floods the operator’s gateway with far more messages than the channel was sized for, the operator places the messages in a waiting line (thus endless ‘Pending’ status) or rejects them to preserve critical network flows (emergency calls, banking OTPs).

Typical API REST vs SMPP

Adjusting your technical expectations helps to avoid disasters in production.

  • Basic REST API (HTTP): The limit is counted per key; at EnvoiSMS, 60 to 1,200 requests per minute depending on the plan (Starter 60, Business 180, Pro 500, Enterprise 1,200), raisable on request.This is perfect for transaction sending (OTP, validations, alerts), but not suitable for “locking” on a basis of 100,000 contacts.
  • Endpoint Bulk API: Instead of sending 1 number per HTTP query, you are sending a 1000-number JSON table in a single query.
  • Direct SMPP Connection: Asynchronous TCP protocol used by large companies. Throughput is purchased. It is negotiated route by route; at EnvoiSMS, SMPP is offered on request to high-volume accounts.

How to Spread a Mass Send (Concrete Calculation)

Rather than trying to force the API door, good engineers smooth up traffic.

Example of calculation: You have a list of 50 000 contacts. You want the campaign to start in the afternoon, before 18h. It is 14h. - Available time: 4 hours (14 400 seconds). - Required speed: 50 000 / 14 400 = ~3,5 SMS / second.

Instead of saturating the network, schedule a Cronjob or a [Horizon/Redis] (/fr/blog/build-a-file-d- wait-sms-resiliente-avec-redis-laravel/) configured to send at a steady pace, under your key's per-minute limit. Not only will you not trigger any API filtering, but the local operator will forward your messages with maximum priority because the traffic will look organic and healthy.

Planning your picks (Ramadan, Black Friday) accordingly

During major national events (Aid Watch, Black Friday), Moroccan operators face an exceptional overall burden.

  1. Delivery times get longer.
  2. The operator may decide to unilaterally lower the permitted TPS for marketing flows (Bulk) in order to prioritize voice and bank flows.
  3. If you send your massive campaign at 5 p.m., it is likely to be in line until 10 p.m.

Good B2B Practice: Cut off your marketing list. Send 20% of your base at 10 a.m., 30% at 12 a.m., and 50% at 15 a.m. This guarantees perfect delivery, careful reading, and you spread the burden on your own customer service (which will receive the calls back as they go).

Why choose EnvoiSMS for your business?

Carrier Delivery

Local routes to IAM, Orange and Inwi, with automatic failover between routes and delivery status sent by webhook.

Cost Optimization

WhatsApp Business API from 0.65 MAD per message with optimal ROI.

Sovereign Data (CNDP)

Full compliance with Moroccan personal data protection regulations (CNDP).

What is the routing latency on the IAM, Inwi and Orange networks?
We use local routes to Maroc Telecom (IAM), Orange and inwi, with automatic failover between routes. Median time to carrier confirmation: 46–58 s (measured in September 2026).
How does the platform manage the format of Moroccan numbers?
EnvoiSMS automatically normalizes the numbers entered (06..., 07..., 00212...) to the E.164 standard (+212) to avoid delivery failures caused by formatting.

Suggested Articles

SMS Formatting in Morocco: Line Breaks, GSM-7 vs UCS-2 Encoding and Cost Optimization
technical

SMS Formatting in Morocco: Line Breaks, GSM-7 vs UCS-2 Encoding and Cost Optimization

WhatsApp Business Formatting in Morocco: Enriched Text, Emojis and Interactive Buttons
technical

WhatsApp Business Formatting in Morocco: Enriched Text, Emojis and Interactive Buttons

One-Tap Autofill & 1-Click WhatsApp OTP Authentication in Morocco
technical

One-Tap Autofill & 1-Click WhatsApp OTP Authentication in Morocco