WAPI Documentation
Welcome to the WAPI developer documentation. Learn how to integrate WhatsApp messaging capabilities into your applications.
Authentication
Authenticate your API requests by including your API key in the request headers. You can manage your API keys in the Dashboard.
Request Header
Authorization: Bearer YOUR_API_KEYQuick Start
Send your first message using our REST API.
POST/api/messages
curl -X POST https://api.wapi.com/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"device_id": "your-device-id",
"to": "628123456789",
"message": "Hello from WAPI!"
}'Messages
The message object is the core of the WAPI service. It supports various types of content including text, images, and documents.
Parameters
| Name | Type | Description |
|---|---|---|
| device_id | string | The ID of the connected device to send from |
| to | string | Destination phone number (with country code) |
| message | string | Text content of the message |
| media_url | string | Optional. URL of media file to attach |
Webhooks
Configure webhooks to receive real-time updates about message status and incoming messages.
Coming Soon
Webhook configuration will be available in the next release.