Expertise technical

Change SMS provider without losing your Sender ID or history

Change sms provider keep sender id: technical guide with code examples for developers in Morocco.

Change SMS provider without losing your Sender ID or history
Table of Contents
  1. The main obstacle that prevents Moroccan companies from [leaving an overpriced or poorly performing SMS provider](/fr/blog/7-signaux-qui-indicate-that-it-is-time-to-change-from/) is the fear of “losing everything”.
  2. Is Sender ID “portable” in Morocco?
  3. Export and migrate your history: The Blacklist (Crucial)
  4. Recover your Templates (Message Templates)
  5. What is a realistic time frame for a complete migration?

The main obstacle that prevents Moroccan companies from [leaving an overpriced or poorly performing SMS provider](/fr/blog/7-signaux-qui-indicate-that-it-is-time-to-change-from/) is the fear of “losing everything”.

"If I change platforms, will I lose the sender ID that my customers know? Do I have to recreate all my message templates? What do I do with my Blacklist?"

Rest assured: the SMS identity (Sender ID) and the data belong to you. Migration to a sovereign provider like EnvoiSMS is a standardized process. Here's how to run it cleanly, without any loss of continuity for your customers.

Is Sender ID “portable” in Morocco?

Yes. Unlike a telephone number which requires complex technical "Portability" (MNP) between operators, the Sender ID Alphanumeric (eg: PHARMACIE_X or AGENCE_AUTO) is only a display "Mask".

However, it is not automatically transferred. To avoid identity theft (Phishing), Moroccan operators (IAM, Orange, inwi) require that the new provider officially declare this Sender ID for your account.

The method (Zero Cut):

  1. You keep your old supplier active.
  2. You create an account on EnvoiSMS and request the activation of the exact same Sender ID (eg: PHARMACIE_X).
  3. You provide the support team with proof (Commercial Register or Letter of Authorization).
  4. During the operator review period (15 to 30 days), you can start sending with the default shared sender or keep your old flow.
  5. Once the operators have approved it on their firewalls, you change the API key in your code.

Result: The end customer will see absolutely no difference on their phone screen. The message will appear in the same conversation thread (Thread) on their smartphone.

Export and migrate your history: The Blacklist (Crucial)

The worst mistake in a migration is to “wake up” customers who have unsubscribed.
If a customer had responded STOP on the old platform, he must especially not receive your news SMS campaigns on ​​the new one, under penalty of complaints to the CNDP.

The obligatory step before the switch:

  1. Log in to your old provider.
  2. Export the “Blacklist / Opt-out list” in CSV format.
  3. Import this CSV file directly into the EnvoiSMS contact management tool.

The routing algorithm will automatically block sending to these numbers, even if your marketing team makes the mistake of reinserting them into a future file.

Recover your Templates (Message Templates)

If you are a call center or a company using dozens of standard texts (“Your package is shipped”, “Appointment reminder”), do not ask your teams to retype everything.

If the old supplier does not allow CSV export of these models (which is common to retain the customer):

  • Ask your IT department to do a simple SELECT in your own database if the templates are stored there.
  • Or use the old provider's "Get Templates" API via a script (ex: Postman) to suck up the texts and re-import them via an insertion script into the new platform.

What is a realistic time frame for a complete migration?

For a transition with no service interruption:

  • Phase 1: Create the EnvoiSMS account and submit your legal documents (RC/ICE) so the 3 operators can review the Sender ID (regulatory timeline: 15 to 30 days).
  • Phase 2: Import your contact databases and Blacklist via CSV, and run integration tests in Staging with the shared sender.
  • Phase 3: Change the API URL in your software as soon as the operators give the Sender ID final approval.

You don't "lose" anything by changing SMS provider. On the contrary, you regain control of your data, while benefiting (very often) from a sudden drop in your sending costs and an improvement in your local deliverability.

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?
On our local routes to Maroc Telecom (IAM), Orange and inwi, the average delivery latency is between 2 and 4 seconds for transactional flows.
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 any delivery failure.

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