WhatsApp Send API for Developers
Send WhatsApp messages from your CRM, store, or internal tools with a single HTTP call. Your own number, flat monthly pricing, no Meta business verification, no per-message fees.
API keys are created in the dashboard under API Keys (Business plan).
Authentication
All requests are authenticated with an API key in the Authorization header. Keys look like bwa_live_… and are shown once at creation — BulkWA stores only a hash.
Authorization: Bearer bwa_live_YOUR_KEYBase URL: https://bulkwa-server.onrender.com. Keep keys server-side; never ship them in browser or mobile code. Revoke a leaked key instantly from the dashboard.
Send a message
/v1/messages| Field | Type | Description |
|---|---|---|
| to | string, required | Recipient phone in international format, e.g. +14155550123. 8-15 digits. |
| message | string, required | Text message body, max 4096 characters. |
| session_id | uuid, optional | Which of your WhatsApp numbers to send from. Defaults to your first connected session. |
cURL
curl -X POST https://bulkwa-server.onrender.com/v1/messages \
-H "Authorization: Bearer bwa_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+14155550123",
"message": "Your order #1042 has shipped!"
}'Node.js
const res = await fetch("https://bulkwa-server.onrender.com/v1/messages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.BULKWA_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
to: "+14155550123",
message: "Your order #1042 has shipped!",
}),
});
const data = await res.json();
// { id: "wamid...", status: "sent", to: "+14155550123", paced_ms: 0 }Response — 200
{
"id": "3EB0538DA65B5B2F7A2B",
"status": "sent",
"to": "+14155550123",
"paced_ms": 11840
}API sends count against your plan’s message quota, are paced by the server (a random 8–20 s between messages on a number, like campaigns), and respect STOP opt-outs automatically. Text messages only for now — media support is planned for v1.1.
List your sessions
/v1/sessionscurl https://bulkwa-server.onrender.com/v1/sessions \
-H "Authorization: Bearer bwa_live_YOUR_KEY"Response — 200
{
"sessions": [
{
"id": "0b6a1c9e-...",
"phone_number": "+14155550100",
"status": "connected"
}
]
}Check plan & usage
/v1/mecurl https://bulkwa-server.onrender.com/v1/me \
-H "Authorization: Bearer bwa_live_YOUR_KEY"Response — 200
{
"plan": "business",
"api_access": true,
"usage": {
"messages_sent_this_month": 1250,
"monthly_limit": 10000,
"remaining": 8750,
"messages_sent_today": 84,
"daily_limit": null
}
}Rate limits
- 60 requests per minute per account on every /v1 endpoint. Exceeding it returns
429. - Message sends also count against your plan’s monthly message quota — the same pool your dashboard campaigns use.
- BulkWA paces sends for you: messages through the same WhatsApp number go out at least a random 8–20 s apart, the gap campaigns use. A request waits up to 20 s for its slot (the response’s
paced_mssays how long); a longer backlog returns429 pacedwith aRetry-Afterheader and sends nothing. Set your HTTP client timeout to at least 30 s, and send anIdempotency-Keyheader (any unique string per message, kept 24 h) so a retry after a timeout can never send twice. - Recipients who replied STOP are refused with
recipient_opted_out; see how STOP opt-outs work.
New to this? The step-by-step guide to sending WhatsApp from your own software walks through a first integration, and the online-store use case shows per-order messages in practice.
Error codes
Errors are JSON: { "error": "code", "message": "human explanation" }
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request / invalid_to | Malformed body — check that `to` has 8-15 digits and `message` is a non-empty string (max 4096 chars). |
| 401 | missing_api_key / invalid_api_key | No key, a malformed key, or a revoked key. Create a new key in the dashboard. |
| 402 | payment_locked | Your subscription payment failed. Update your payment method in Billing. |
| 403 | upgrade_required | The developer API requires the Business plan. |
| 404 | session_not_found | The session_id you passed does not belong to your account. |
| 409 | session_not_connected | No connected WhatsApp session. Reconnect in the dashboard and retry. |
| 422 | recipient_opted_out | This recipient opted out (replied STOP, UNSUBSCRIBE, CANCEL, END or QUIT) — BulkWA blocks the send for compliance. |
| 409 | idempotency_in_progress | A request with the same Idempotency-Key is still running. A finished one is replayed instead (Idempotent-Replayed: true). |
| 429 | paced | Messages on this number are spaced 8–20 s apart and the backlog is over 20 s. Nothing was sent — retry after the Retry-After seconds. |
| 429 | quota_exceeded / rate limit | You hit your plan's message quota or the 60 requests/minute rate limit. Retry later. |
| 502 | send_failed | WhatsApp did not acknowledge the message. Safe to retry. |
| 503 | service_unavailable | Temporary backend issue (e.g. quota check failed). Retry with backoff. |
| 503 | number_reconnecting | The number reconnected moments ago; we're checking messages it got while offline for opt-outs. Nothing was sent — retry after Retry-After seconds. |
| 503 | optout_check_failed | We couldn't read your STOP list, so nothing was sent (we never send without checking it). Retry shortly. |
Developer API FAQ
Is the BulkWA API the official WhatsApp Business API?
No. The BulkWA API is a simple REST layer over your own WhatsApp number, which BulkWA connects via QR pairing (the same mechanism as WhatsApp Web). That is why there is no Meta business verification, no template approval, and no per-message fees — and also why the connection is unofficial, so ban risk exists on your number. BulkWA spaces API sends on each number a random 8–20 seconds apart, like campaigns, and honors STOP opt-outs automatically.
How much does the BulkWA API cost?
API access is included in the Business plan at $99/month ($79/month billed annually), which covers 10,000 messages per month and 2 WhatsApp numbers (more at $9.99/month each). There are no per-message or per-request charges — API sends draw from the same flat monthly quota as dashboard campaigns.
What can I send through the API?
Text messages up to 4,096 characters via POST /v1/messages, from any of your connected WhatsApp numbers (pick one with session_id or let it default to your first connected session). Media attachments are planned for v1.1. You can also list your connected numbers (GET /v1/sessions) and check plan usage (GET /v1/me).
What are the rate limits?
60 requests per minute per account across all /v1 endpoints, plus your plan's monthly message quota. BulkWA paces sends for you: messages through the same WhatsApp number go out at least a random 8–20 seconds apart, the same gap dashboard campaigns use. A request waits up to 20 seconds for its slot; if the backlog is longer you get a 429 paced error with a Retry-After header, and nothing is sent.
Start sending in five minutes
Upgrade to the Business plan, connect your WhatsApp number by QR code, create a key, and make your first API call.