WhatsApp API
Send messages, templates, and manage WhatsApp Business API
WhatsApp API
The WhatsApp API allows you to send messages, templates, and receive webhooks through the WhatsApp Business Platform.
Base URL
https://api.apimw.com/v1/whatsapp
Features
- Text Messages - Send plain text messages
- Template Messages - Send pre-approved notification templates
- Media Messages - Send images, documents, audio, and video
- Interactive Messages - Buttons, lists, and quick replies
- Delivery Status - Track message delivery and read receipts
- Webhooks - Receive incoming messages and status updates
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /messages/send |
Send a text message |
| POST | /messages/template |
Send a template message |
| GET | /messages/{id} |
Get message status |
| GET | /templates |
List available templates |
| POST | /templates |
Create a new template |
| GET | /analytics |
Get messaging analytics |
Message Types
Text Messages
Simple text messages can be sent within the 24-hour customer service window.
Template Messages
Pre-approved templates are required to initiate conversations outside the 24-hour window.
Media Messages
Supported media types:
- Images (JPEG, PNG) - up to 5MB
- Documents (PDF) - up to 100MB
- Audio (MP3, OGG) - up to 16MB
- Video (MP4) - up to 16MB
Prerequisites
Before using the WhatsApp API:
- Connect your WhatsApp Business Account in the Console
- Verify your business with Meta
- Create and get templates approved (for notifications)