One REST call. Everything else is the same queue.
The API sits on the same pacing, filters and logs as the dashboard, so a message from your code gets exactly the same protection as one from a campaign.
Hello, world in four lines
Authenticate with a bearer key and post to /v1/messages. You get a 202 and a message id straight away, and webhooks tell you what happened next.
- Text, media and locations
- Schedule with send_at, drop stale messages with expires_at
- Idempotency-Key header makes retries safe
curl -X POST https://ivorypush.com/v1/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to": "919876543210", "text": "Your order is ready."}'
# 202 Accepted
# { "id": "msg_...", "status": "queued" }const res = await fetch("https://ivorypush.com/v1/messages", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.IVORYPUSH_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ to: "919876543210", text: "Your order is ready." }),
});
console.log(await res.json()); // { id: "msg_...", status: "queued" }import os, requests
r = requests.post(
"https://ivorypush.com/v1/messages",
headers={"Authorization": "Bearer " + os.environ["IVORYPUSH_KEY"]},
json={"to": "919876543210", "text": "Your order is ready."},
)
print(r.json()) # {"id": "msg_...", "status": "queued"}// Verify a webhook (Node.js). Headers sent with every event:
// WaGateway-Event-Id, WaGateway-Timestamp, WaGateway-Signature
const crypto = require("node:crypto");
function isValid(req, rawBody, secret) {
const ts = req.headers["wagateway-timestamp"];
const expected = "v1=" + crypto.createHmac("sha256", secret)
.update(ts + "." + rawBody).digest("hex");
return req.headers["wagateway-signature"] === expected;
}Give each key only what it needs
Send messages
Read message status
Manage numbers
Manage webhooks
Manage opt-outs
One number only
Limit a key to a single number, so a script for one line cannot touch the others.
Test mode
Test keys accept sends and report success, but nothing goes to WhatsApp. Good for CI and staging.
Signed, and retried when you are down
Each event carries a timestamp and an HMAC signature, so you can verify it came from Ivorypush. Failed deliveries are retried up to six times over roughly 17 hours.
See everything, stop everything
30 days of logs, filterable by direction and number. See what is waiting in the queue and purge it for one number or for all, when you need a hard stop.
- Logs for 30 days
- View the send queue
- Purge the queue per number
Logs, 30 days back
| Time | Type | Chat | Detail |
|---|---|---|---|
| 10:42:07 | Sent | ••••0142 | Hi Meera, your order #4821 has shipped. |
| 10:42:09 | Delivered | ••••0142 | Delivered to the phone. |
| 10:42:48 | Read | ••••0142 | Read by the recipient. |
| 10:43:02 | Reply | ••••0142 | “Can it come after 6pm?” |
| 10:43:15 | Sent | ••••0377 | Your appointment is tomorrow at 4pm. |
| 10:43:17 | Failed | ••••0911 | Gave up after 3 tries: session was unreachable. |
| 10:44:00 | System | Shop line | Safe Mode: step 2 of 5, 150 messages per day. |
| 10:44:20 | Failed | ••••0508 | Refused: the same text went to this chat 3 times in 24 hours. |
| 10:45:02 | Reply | ••••0377 | “STOP” |
| 10:45:02 | System | ••••0377 | Opted out. Further sends to this chat are refused. |
| 10:46:30 | System | Shop line | Health check ok. |
| 10:47:11 | Delivered | ••••0377 | Delivered to the phone. |
Sample data. In the dashboard these come from your own numbers, and the send queue sits next to them so you can see what is waiting.
API and webhooks: common questions
Which languages can I use?
Anything that can make an HTTPS request. The examples show cURL, Node.js and Python.
What does the API return?
A 202 with a message id and a queued status. Delivery progress arrives through webhooks or by reading the message.
How do I avoid sending twice on a retry?
Send an Idempotency-Key header. A repeat with the same key within 24 hours returns the original message instead of creating another.
Is there rate limiting?
Yes. API requests are rate limited per key, and sends are paced per number by Safe Mode and daily caps. Errors say which limit you hit.
Related features
Link a number and send your first message today
Sign in with Google, link a number by QR or pairing code, and send for a month before you pay anything. No card needed to start.
Unofficial WhatsApp Web protocol. Not affiliated with WhatsApp.