Send messages, images and documents from your ERP, CRM, app or website with a simple HTTP request. Works with any programming language.
5-day trial on your first instance · no credit card requiredcurl -X POST https://api.wantawa.com/api/send.php \
-H "Authorization: Bearer TU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"instance":"my_instance","phone":"5215512345678","message":"Hello from Wantawa"}'<?php
$ch = curl_init('https://api.wantawa.com/api/send.php');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer TU_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'instance' => 'my_instance',
'phone' => '5215512345678',
'message' => 'Hello from Wantawa',
]),
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status . ' ' . $response;const response = await fetch("https://api.wantawa.com/api/send.php", {
method: 'POST',
headers: {
"Authorization": "Bearer TU_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
"instance": "my_instance",
"phone": "5215512345678",
"message": "Hello from Wantawa"
}),
});
console.log(response.status, await response.json());import requests
response = requests.post(
"https://api.wantawa.com/api/send.php",
headers={
"Authorization": "Bearer TU_TOKEN",
},
json={
"instance": "my_instance",
"phone": "5215512345678",
"message": "Hello from Wantawa"
},
timeout=30,
)
print(response.status_code, response.json())A clear API, a dashboard to manage your numbers and the tools that prevent surprises in production.
Send notifications, codes and alerts to any number with a single POST call.
Share photos and catalogs with an optional caption, from a public URL, base64 or a file.
Invoices, quotes and contracts as PDF, Office, CSV, ZIP and more, ready to download.
Receive your customers' messages on your server, signed with HMAC-SHA256 so you can verify their origin.
The optional Idempotency-Key header prevents resends when your client retries after a timeout.
Manage instances, link your number with a QR code and browse your history with filters by date, status and type.
Private per-account token, strict file validation and per-minute limits that protect your number's reputation.
REST API with JSON: ready-made examples for cURL, PHP, Node.js, Python, C#, Java and Go.
A built-in tester generates the code for your request and really sends it, so you can validate before you code.
Sign up and add an instance: one WhatsApp number. Your first instance includes a 5-day trial.
Scan the code from WhatsApp on your phone, just like opening WhatsApp Web. Done in seconds.
Copy your token from the dashboard and make an API request, or use the built-in tester without writing code.
curl -X POST https://api.wantawa.com/api/send.php \
-H "Authorization: Bearer TU_TOKEN" \
-H "Content-Type: application/json" \
-d '{"instance":"my_instance","phone":"5215512345678","message":"Hello from Wantawa"}'<?php
$ch = curl_init('https://api.wantawa.com/api/send.php');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer TU_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'instance' => 'my_instance',
'phone' => '5215512345678',
'message' => 'Hello from Wantawa',
]),
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status . ' ' . $response;const response = await fetch("https://api.wantawa.com/api/send.php", {
method: 'POST',
headers: {
"Authorization": "Bearer TU_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
"instance": "my_instance",
"phone": "5215512345678",
"message": "Hello from Wantawa"
}),
});
console.log(response.status, await response.json());import requests
response = requests.post(
"https://api.wantawa.com/api/send.php",
headers={
"Authorization": "Bearer TU_TOKEN",
},
json={
"instance": "my_instance",
"phone": "5215512345678",
"message": "Hello from Wantawa"
},
timeout=30,
)
print(response.status_code, response.json())All are JSON POST requests under https://api.wantawa.com/api.
| Endpoint | What it does | Main fields |
|---|---|---|
POST/send.php | Sends a text message | instance phone message |
POST/send-image.php | Sends an image (JPG, PNG, WEBP, GIF) | instance phone image caption |
POST/send-document.php | Sends a document (PDF, Office, CSV, ZIP…) | instance phone document filename caption |
You pay per instance (WhatsApp number). No per-message charges and no automatic renewals.
All prices are in US dollars (USD). If you pick another currency, the amount shown is for reference only: you are always charged in USD. Secure card payment via Stripe. Each payment adds days to your instance's validity.
Your first instance includes a 5-day trial, no card required.
No. Wantawa works by linking your WhatsApp number as a device, just like WhatsApp Web. It is practical and quick to set up, but WhatsApp may restrict numbers that send spam. Only message people who expect to hear from you and keep a reasonable pace.
A Wantawa account (you can sign up with your email or your Google account) and a phone with an active WhatsApp to scan the QR code. You do not need to install anything on your server: being able to make HTTP requests is enough.
We do not charge per message. To protect your number we apply a maximum of 30 sends per minute on each instance.
Yes. Set an https URL on your instance and we will send every incoming message to your server, with an HMAC signature so you can verify it comes from Wantawa.
Any language that can make an HTTP request with JSON. The docs include examples for cURL, PHP, Node.js, Python, C#, Java and Go.
The instance is suspended and stops sending until you renew. Your history and settings are kept. When you pay, the days are added to your validity.
By card, through Stripe, in the dashboard. You are always charged in US dollars (USD); the other currencies on this site are for reference only. Payments are one-off per period (30 or 365 days): there are no automatic charges.
In your dashboard, with filters by recipient, date, status and type. Deleting an instance also deletes its message history.
Create your account, link your number and send your first message in minutes.
Create a free account