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_KEY

Quick 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

NameTypeDescription
device_idstringThe ID of the connected device to send from
tostringDestination phone number (with country code)
messagestringText content of the message
media_urlstringOptional. 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.