SMS & WhatsApp API · Morocco

The developer-first SMS API for Morocco.

EnvoiSMS.ma provides product teams with a robust REST surface to automate mission-critical messaging with carrier-grade reliability across Moroccan networks.

Get started free Read the docs
Contracted 99.5% SLA
Local routes to 3 carriers
Law 09-08: consent ledger
REQUEST
curl -X POST https://api.envoisms.ma/v1/messages \
-H "Authorization: Bearer sma_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"to": "+212661234567",
"from": "MonEntreprise",
"message": "Votre commande #4821 est en route."
}'
api.envoisms.ma/v1LIVESLA 99.99%
12:45IAM
MonEntreprise
Aujourd'hui 12:45
Your order #4821 is on its way. Track on envoisms.ma/track STOP to 5050
Routage :IAM · Orange · Inwi
DLR :Délivré ✓✓
Local routes & automatic failover

SMS delivered by the three Moroccan operators, WhatsApp through Meta's official API.

Maroc Telecom
Local route + failover
Orange Maroc
Local route + failover
Inwi
High-priority routing
Meta Business
Official WhatsApp API
API

Everything your engineering team needs.

An OpenAPI-first REST surface with enterprise-grade guarantees.

Local Carrier Routes

Local routes to IAM, Orange, and Inwi networks, with automatic failover to another route when one degrades.

+212 Native Normalization

Automatic formatting of all Moroccan numbers. Your application no longer needs to handle local variants.

HMAC-Signed DLR Webhooks

Signed and secure operator delivery receipts posted to your HTTPS endpoint in real time.

WhatsApp OTP + SMS fallback

/verify endpoint: code valid 10 min, sent on WhatsApp then by SMS if Meta refuses the send, with delivery tracking for every attempt.

Official WhatsApp Business

Send Meta-approved interactive templates with action buttons, images and files via a single API.

CNDP Compliance & Regulated Sectors

Data hosted in Morocco on the EnvoiSMS Cloud infrastructure, compliant with CNDP requirements. Built for financial institutions and insurers.

Frequently Asked Questions

Learn all about Morocco SMS API.

5 MAD of free credit · Instant activation

Ready to build on infrastructure made in Morocco?

Create your account in 2 minutes and start testing today with no commitment.