API Documentation v2.4

The
Programmable WhatsApp Infrastructure.

Integrate the official WhatsApp API into your tech stack. Built for reliability: secure OTPs, bidirectional CRM sync and automated workflows.

Explore the Sandbox
POST /v1/messages/otp
{
  "to": "+2126XXXXXXXX",
  "type": "otp",
  "otp": {
    "code": "582910",
    "ttl": "300"
  }
}
OTP Delivered
wamid.ID_832941...

1. Official OTP & Bulk Messages

Distribute your verification codes and marketing campaigns via our highly available endpoints.

POST /v1/messages/template

Individual sending of Meta-approved templates for critical notifications.

Request Payload
{ "template": "order_confirmed", "lang": "en" }
POST /v1/bulk/async-run

Asynchronous execution of massive campaigns with intelligent queue management.

Request Payload
{ "recipients": ["+212...", "..."], "batch_id": "promo_v1" }

2. Bidirectional CRM Integration

Don't just send messages. Sync user data in real-time between WhatsApp and your business stack.

Sync Pull (Data Collection)

Retrieve information entered by the customer on WhatsApp to enrich your CRM (Hubspot, Salesforce, Pipedrive).

Sync Push (Status Updates)

Whenever a status changes in your CRM, Wasel automatically triggers the corresponding WhatsApp notification.

Webhook
User: "Ma commande ?"
>> Triggering API...
CRM: Found ID 9021
>> Syncing Update

3. Programmable Operations & Workflows

Create complex flows where Wasel orchestrates communication between the user and your business systems.

01

Data Collection

Hello! I'd like to insure my vehicle.
Very well. What is your license plate number?
02

Backend Processing

// Logic: Insurance Validation const policy = await CRM.getQuote(plateNumber); if (policy.eligible) { wasel.send('quote_ready', policy); }

WhatsApp Result

Your auto quote is ready: **2400 MAD/year**. Type 'CONFIRM' to subscribe.

Ready to build?

Join tech teams that trust Wasel for their critical communications.

Read Documentation

REST API

Endpoints clairs, documentation complète et exemples en Node.js, Python, PHP et Go.

99.99% SLA

Infrastructure asynchrone avec retries automatiques et tracking granulaire des échecs.