Bring WhatsApp into your business with Meta's official WhatsApp Business API
EnvoiSMS.ma, a Meta Tech Provider, connects your business to Meta's WhatsApp Business Cloud API (WABA): guided connection of your account, Meta-approved templates, freeform replies within the 24-hour window, through the same REST API as your SMS.
WhatsApp Business API (WABA)
Meta's WhatsApp Business Cloud API
Meta's official route for sending and receiving WhatsApp messages from your applications: approved templates, replies within the 24-hour window, and the option to request the Official Business Account (blue checkmark) badge.
Points forts WABA :
- Same REST API and signed webhooks as your SMS
- Eligible to request the Official Business Account badge (blue checkmark, granted by Meta)
- Far lower risk of line suspension or blocking than unofficial apps
- Consents and STOP requests recorded, in line with Law 09-08
Mandatory WABA constraints to note:
- •Pre-approval required by Meta for every outbound message template.
- •Cannot use the standard mobile WhatsApp app simultaneously on this number.
- •Freeform outbound messaging locked after 24 hours of client inactivity.
- •Meta pricing per message, by category (Marketing, Utility, Authentication, Service).
What businesses use it for
Four common uses of the official WhatsApp API, and the message type each one relies on.
E-commerce Store & COD Confirmation in Morocco
You confirm COD orders, verify delivery addresses, and share the courier's number.
An approved utility template goes out with every order; once the customer replies, the 24-hour window lets you chat freely.
Verification Codes (OTP)
You verify your users' phone numbers at signup or login.
The Verify API sends the code as a WhatsApp authentication template and falls back to SMS if Meta refuses the WhatsApp send.
Customer Support & Sales Team
Customers write to you on WhatsApp and your team replies.
Inbound messages land in the EnvoiSMS inbox and on your webhooks; you reply freely for 24 hours.
Marketing Campaigns
You send promotions to customers who agreed to receive them.
Meta-approved marketing templates sent to consenting contacts; STOP requests are recorded automatically.
API Request Example
Sending an approved WhatsApp template through the same REST API as your SMS.
// WhatsApp Business API (WABA officiel)
// Envoi avec template pré-approuvé par Meta
const response = await fetch("https://api.envoisms.ma/v1/messages", {
method: "POST",
headers: {
"Authorization": "Bearer smr_YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
channel: "whatsapp",
to: "+212612345678",
template: {
name: "order_confirmation_v2",
language: "fr",
components: [
{
type: "body",
parameters: [
{ type: "text", text: "Amine" },
{ type: "text", text: "#94820" },
{ type: "text", text: "Casablanca" }
]
}
]
}
})
});
const data = await response.json();Frequently Asked Questions
Yes, provided it is registered on Meta's WhatsApp Business API. A number used in the WhatsApp app generally has to be removed from the app before registration; we guide you through the connection. You can also use a dedicated number, such as our Moroccan virtual number (+212).
Ready to automate your WhatsApp communications?
Create your account in 2 minutes. Enjoy 5 MAD free credit to test the API.