REST API v1 Reference
WhatsDev Developer Documentation
Integrate WhatsApp messaging into any backend or automation workflow using standard HTTP JSON requests.
1. Authentication
Generate an API key from your Dashboard API Keys page and pass it in the Authorization header:
Authorization: Bearer wd_live_your_api_key_here
2. Send Message Endpoint
POST
https://whatsdev.in/api/v1/send| Field | Type | Description |
|---|---|---|
| to | string (required) | Recipient phone number with country code (e.g. 919876543210). |
| message | string | Text body or caption if sending media. |
| media_url | string (optional) | Public HTTPS URL to an image or PDF/document (Paid plans). |
| session_id | string (optional) | Specific linked device ID. Defaults to your latest connected device. |
curl -X POST "https://whatsdev.in/api/v1/send" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "919876543210",
"message": "Hello from WhatsApp API!"
}'3. Webhook Event Payload
Configure your webhook endpoint in Dashboard → Webhooks to receive incoming messages and device status updates.
{
"event": "message.received",
"timestamp": "2026-11-26T12:00:00.000Z",
"data": {
"sessionId": "u1_a8b9c0d1",
"from": "919876543210",
"pushName": "Customer",
"messageId": "3EB0...",
"text": "Hello!"
}
}