WhatsApp API for developers

Connect WhatsApp to your system in minutes

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 required
PHPNode.jsPythonC#JavaGocURL
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())
Features

Everything you need to integrate WhatsApp

A clear API, a dashboard to manage your numbers and the tools that prevent surprises in production.

Text messages

Send notifications, codes and alerts to any number with a single POST call.

Images

Share photos and catalogs with an optional caption, from a public URL, base64 or a file.

Documents

Invoices, quotes and contracts as PDF, Office, CSV, ZIP and more, ready to download.

Inbound webhooks

Receive your customers' messages on your server, signed with HMAC-SHA256 so you can verify their origin.

No duplicates

The optional Idempotency-Key header prevents resends when your client retries after a timeout.

Dashboard

Manage instances, link your number with a QR code and browse your history with filters by date, status and type.

Secure by design

Private per-account token, strict file validation and per-minute limits that protect your number's reputation.

Any language

REST API with JSON: ready-made examples for cURL, PHP, Node.js, Python, C#, Java and Go.

Test from your account

A built-in tester generates the code for your request and really sends it, so you can validate before you code.

How it works

From sign-up to your first message in 3 steps

Create your account and an instance

Sign up and add an instance: one WhatsApp number. Your first instance includes a 5-day trial.

Link your number with the QR code

Scan the code from WhatsApp on your phone, just like opening WhatsApp Web. Done in seconds.

Send your first message

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())
API

Available endpoints

All are JSON POST requests under https://api.wantawa.com/api.

EndpointWhat it doesMain fields
POST/send.phpSends a text messageinstance phone message
POST/send-image.phpSends an image (JPG, PNG, WEBP, GIF)instance phone image caption
POST/send-document.phpSends a document (PDF, Office, CSV, ZIP…)instance phone document filename caption

Read the full reference →

Pricing

Simple, with no per-message fees

You pay per instance (WhatsApp number). No per-message charges and no automatic renewals.

Monthly plan

$39USD /mo
Charged in US dollars (USD).
  • Valid for 30 days
  • 1 WhatsApp number (instance)
  • No per-message fees
  • REST API: text, image and document
  • Inbound message webhook
  • Dashboard with history and filters
  • Email and WhatsApp support
Get started
2 months free

Annual plan

$390USD /yr
Charged in US dollars (USD).
  • Valid for 365 days
  • 1 WhatsApp number (instance)
  • No per-message fees
  • REST API: text, image and document
  • Inbound message webhook
  • Dashboard with history and filters
  • Email and WhatsApp support
Get started

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.

Frequently asked questions

What people usually ask

Is this the official WhatsApp Business API?

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.

What do I need to get started?

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.

Is there a message limit?

We do not charge per message. To protect your number we apply a maximum of 30 sends per minute on each instance.

Can I receive my customers' messages?

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.

Which languages does it work with?

Any language that can make an HTTP request with JSON. The docs include examples for cURL, PHP, Node.js, Python, C#, Java and Go.

What happens when my validity ends?

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.

How do I pay, and in which currency?

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.

Where is my sending history stored?

In your dashboard, with filters by recipient, date, status and type. Deleting an instance also deletes its message history.

Start today with a 5-day trial

Create your account, link your number and send your first message in minutes.

Create a free account