Send WhatsApp message API with code examples
WAservix WhatsApp API Gateway sends a WhatsApp message with one HTTPS request. Copy an example in your language.
- One request
- 4 languages
- Webhooks
- Free 3-day trial
Send WhatsApp message from API: the request
curl -X POST https://tekservix.com/waservix/api/send-message \
-H "Authorization: Bearer $WASERVIX_KEY" \
-H "Content-Type: application/json" \
-d '{"to":"+447700900123","text":"Hello from the API"}'
Send WhatsApp message API PHP
$ch = curl_init("https://tekservix.com/waservix/api/send-message");
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer $key", "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode(["to" => "+447700900123", "text" => "Hi!"])]);
echo curl_exec($ch);
Send WhatsApp message API Python
import requests
r = requests.post("https://tekservix.com/waservix/api/send-message",
headers={"Authorization": "Bearer " + KEY},
json={"to": "+447700900123", "text": "Hi!"})
print(r.json())
Send WhatsApp message API JavaScript
const r = await fetch("https://tekservix.com/waservix/api/send-message", {
method: "POST",
headers: { Authorization: "Bearer " + KEY, "Content-Type": "application/json" },
body: JSON.stringify({ to: "+447700900123", text: "Hi!" })
});
console.log(await r.json());
Send WhatsApp message API C#
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "Bearer " + key);
var res = await http.PostAsJsonAsync("https://tekservix.com/waservix/api/send-message",
new { to = "+447700900123", text = "Hi!" });
Console.WriteLine(await res.Content.ReadAsStringAsync());
WhatsApp API for website and WhatsApp API for sending messages
Call the API from your server (never put the key in browser code). For a simple “chat with us” button, use a WhatsApp API link instead.
WhatsApp API link (api.whatsapp.com/send)
Links like https://api.whatsapp.com/send?phone=... or wa.me open a chat with you; they don’t send anything automatically. Make one with the WhatsApp link generator.
Send WhatsApp message API pricing and send WhatsApp message API free trial
- Starter $4.50/month: 1 number
- Pro $12/month: 3 numbers
- Plus $22/month: 6 numbers
- Business $35/month: 10 numbers
- Enterprise $79/month: 25 numbers
No per-message fee. Yearly billing costs 10 months. Free 3-day trial with no card.
Pay per WhatsApp number, not per message
Every plan includes unlimited messages, the full API, webhooks, campaigns and auto-replies.
Not sure yet? Try WAservix free for 3 days — no card, one device, one number at a time, with a 2-minute wait between messages.
Send message API questions
What does api whatsapp com send phone mean?
It is a click-to-chat link format that opens WhatsApp with a number filled in. It doesn’t send messages by itself.
Get your API key
Free for 3 days with no card: one number, one message at a time. Plans from $4.50/month after.
Get startedMore about WAservix: WAservix overview · WhatsApp API · WhatsApp Business API · WhatsApp API pricing · Free WhatsApp API trial · Send messages by API · WhatsApp link generator · WAservix vs Cloud API · API documentation guide · WhatsApp API providers · Alternatives · PHP WhatsApp API · WhatsApp bot API · Integrations · Bulk messaging · Use cases · Calling API · Developer docs