WhatsApp API V2 — Full Guide
Whatsender API
Send WhatsApp messages from any website or app using our simple HTTP API.
API Base URL
https://www.emediawa.online/api
Getting Started
- Register at https://emediawa.online and subscribe to a plan
- Connect WhatsApp device (QR scan) from dashboard
- Copy Auth Key from Profile → Auth Key (use as api_key)
- Use email + api_key in every API call
Authentication
email=youremail@gmail.com
api_key=YOUR_AUTH_KEY
app_key=YOUR_APP_KEY (optional)
POST
Send Text Message
Send a plain WhatsApp text message to any number.
https://www.emediawa.online/api/send-message.php
| Parameter | Required | Description |
|---|---|---|
email |
Yes | Your registered account email |
api_key |
Yes | Auth Key from Profile (api_key) |
phone |
Yes | Receiver number with country code (947XXXXXXXX) |
message |
Yes | Message text to send |
app_key |
No | Optional app key for multiple apps |
cURL
curl -X POST https://www.emediawa.online/api/send-message.php \
-d "email=youremail@gmail.com" \
-d "api_key=YOUR_API_KEY" \
-d "phone=947XXXXXXXX" \
-d "message=Hello from Whatsender API"
POST
Send Image
Send an image with optional caption via public URL.
https://www.emediawa.online/api/send-image.php
| Parameter | Required | Description |
|---|---|---|
email |
Yes | Account email |
api_key |
Yes | Auth Key |
phone |
Yes | Receiver number |
image_url |
Yes | Public image URL (jpg, png, webp) |
caption |
No | Optional image caption |
cURL
curl -X POST https://www.emediawa.online/api/send-image.php \
-d "email=youremail@gmail.com" \
-d "api_key=YOUR_API_KEY" \
-d "phone=947XXXXXXXX" \
-d "image_url=IMAGE_URL" \
-d "caption=Optional Caption"
POST
Send Voice Message
Send audio/voice note via public audio URL.
https://www.emediawa.online/api/send-voice.php
| Parameter | Required | Description |
|---|---|---|
email |
Yes | Account email |
api_key |
Yes | Auth Key |
phone |
Yes | Receiver number |
audio_url |
Yes | Public audio URL (mp3, ogg, etc.) |
cURL
curl -X POST https://www.emediawa.online/api/send-voice.php \
-d "email=youremail@gmail.com" \
-d "api_key=YOUR_API_KEY" \
-d "phone=947XXXXXXXX" \
-d "audio_url=AUDIO_URL"
POST
Send Link Preview
Send a message with URL for WhatsApp link preview.
https://www.emediawa.online/api/send-link-preview.php
| Parameter | Required | Description |
|---|---|---|
email |
Yes | Account email |
api_key |
Yes | Auth Key |
phone |
Yes | Receiver number |
text |
No | Message text |
url |
Yes | Link URL |
title |
No | Link title |
description |
No | Link description |
cURL
curl -X POST https://www.emediawa.online/api/send-link-preview.php \
-d "email=youremail@gmail.com" \
-d "api_key=YOUR_API_KEY" \
-d "phone=947XXXXXXXX" \
-d "text=Check this link" \
-d "url=YOUR_URL" \
-d "title=TITLE" \
-d "description=DESCRIPTION"
POST
Send Poll
Send a WhatsApp poll with multiple options.
https://www.emediawa.online/api/send-poll.php
| Parameter | Required | Description |
|---|---|---|
email |
Yes | Account email |
api_key |
Yes | Auth Key |
phone |
Yes | Receiver number |
question |
Yes | Poll question |
options |
Yes | Comma-separated options (Option1,Option2,Option3) |
cURL
curl -X POST https://www.emediawa.online/api/send-poll.php \
-d "email=youremail@gmail.com" \
-d "api_key=YOUR_API_KEY" \
-d "phone=947XXXXXXXX" \
-d "question=Your question" \
-d "options=Option1,Option2,Option3"
POST
Send WhatsApp Status
Post a text status to your WhatsApp contacts.
https://www.emediawa.online/api/status/send-text.php
| Parameter | Required | Description |
|---|---|---|
email |
Yes | Account email |
api_key |
Yes | Auth Key |
text |
Yes | Status text content |
cURL
curl -X POST https://www.emediawa.online/api/status/send-text.php \
-d "email=youremail@gmail.com" \
-d "api_key=YOUR_API_KEY" \
-d "text=Your status text"
Success Response
{
"success": true,
"message": "Message sent successfully.",
"data": {
"from": "947XXXXXXXX",
"to": "947XXXXXXXX",
"status_code": 200
}
}
PHP Integration Example
$ch = curl_init('https://www.emediawa.online/api/send-message.php');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => [
'email' => 'youremail@gmail.com',
'api_key' => 'YOUR_API_KEY',
'phone' => '947XXXXXXXX',
'message' => 'Hello from my website!',
],
]);
$response = curl_exec($ch);
curl_close($ch);
Developed by Emedia Solution Pvt Ltd | support@emediasolution.lk | 0755599111