Lushai.dev WAPI Logo Lushai.dev WAPI
Lushai.dev WAPI Interactive REST API Reference

WhatsApp REST API Endpoints & Developer Specs

Send text messages, documents, media attachments, interactive voting polls, and handle inbound events using standard HTTP requests.

1. Authentication

All API requests require your secret Bearer token in the HTTP Authorization header:

Authorization: Bearer YOUR_API_KEY
POST /api/send-message

Send automated WhatsApp text messages, emojis, media, and interactive polls to any international phone number.

cURL Example:

curl -X POST https://wapi.lushai.dev/api/send-message \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "number": "919876543210",
    "message": "Hello! Your verification code is 5491.",
    "type": "text"
  }'
POST /api/webhook/set

Register your webhook URL to receive instant real-time HTTP callbacks for incoming customer messages and delivery receipts.

curl -X POST https://wapi.lushai.dev/api/webhook/set \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://yourdomain.com/api/whatsapp-webhook"
  }'