Ready-made Postman collection
Every request ready to run: devices, messages, templates, campaigns. Import it into Postman, then set your key in api_key and your device in device_id.
Overview
Connect your own system (store, CRM, booking app...) to the WhatsApp numbers in your account: send messages and campaigns, and receive their status by webhook.
| Item | Value |
|---|---|
| Base URL | https://api.isender360.com/api/v2/isender |
| Format | application/json |
| Auth | Authorization: Bearer YOUR_API_KEY |
| Rate limit | 60 requests per minute per key |
Sending is asynchronous: the API answers 202 right away and queues the message, which is sent with a gap between messages to protect your number. Each status change (sent, delivered, read, failed) is then posted to your webhook URL.
Authentication
Create a key in Dashboard → API & webhooks → Keys. It is shown once; store it in your server's environment and never in browser or mobile app code.
Authorization: Bearer YOUR_API_KEYEach key belongs to one account and can only reach that account's devices, messages and campaigns. Revoking a key stops it immediately.
Devices
List your WhatsApp numbers to get the device_id you send from.
{ "success": true, "data": [
{ "id": 12, "nickname": "Sales", "status": "ready", "connected": true,
"send_enabled": true, "phone": "966555000111", "last_checked_at": "2026-11-26T10:00:00+00:00" }
] }You can only send from a device whose status is ready. Pair new devices from the dashboard by scanning the QR code.
Send a message
curl -X POST https://api.isender360.com/api/v2/isender/devices/12/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1023-ready" \
-d '{
"type": "text",
"recipient": "966500000000",
"payload": { "text": "Hello Ahmed, your order #1023 is ready." }
}'| Field | Description |
|---|---|
type | text, image, video, audio, document or location |
recipient | International number without + or leading zeros, e.g. 966500000000 |
payload | Content for the type: text, or url with an optional caption |
send_after | Optional future send time (ISO 8601) |
Idempotency-Key | Optional header (up to 80 chars: letters, digits, _ . : -): retrying with the same key never sends twice; keys are private to your account |
Response
HTTP/1.1 202 Accepted
{
"success": true,
"data": {
"id": 1523,
"device_id": 12,
"campaign_id": null,
"type": "text",
"recipient": "966500000000@c.us",
"status": "pending",
"created_at": "2026-11-26T10:15:00+00:00"
}
}Image or document
{ "type": "image", "recipient": "966500000000",
"payload": { "url": "https://example.com/invoice.png", "caption": "Your invoice" } }
{ "type": "document", "recipient": "966500000000",
"payload": { "url": "https://example.com/invoice.pdf", "filename": "invoice.pdf" } }Send with a template
Instead of writing the text in every request, use one of your saved templates (Dashboard → Templates). A template can be text, image, video or document, with placeholders like {{name}} that you fill per request.
List your templates
curl https://api.isender360.com/api/v2/isender/templates \
-H "Authorization: Bearer YOUR_API_KEY"{ "success": true, "data": [
{ "id": 5, "name": "Order ready", "type": "text",
"text": "Hi {{name}}, your order {{order}} is ready.",
"variables": ["name", "order"], "has_attachment": false, "attachment_ready": true }
] }variables lists the placeholders each template needs.
Send a message from a template
Same send request, with template_id and variables instead of type and payload:
curl -X POST https://api.isender360.com/api/v2/isender/devices/12/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1023-ready" \
-d '{
"template_id": 5,
"recipient": "966500000000",
"variables": { "name": "Ahmed", "order": "1023" }
}'| Field | Description |
|---|---|
template_id | Template id from GET /templates. A template that is not yours returns 404. |
variables | Values for the placeholders (text or numbers). A placeholder without a value returns 422 naming it. |
{{phone}} | Filled automatically with the recipient's number. |
| Attachment | Image, video and document templates send their file, with the text as the caption. |
Campaign from a template
{
"device_id": 12,
"name": "Friday offer",
"template_id": 7,
"variables": { "offer": "20% off" },
"recipients": ["966500000000", "966511111111"],
"delay_seconds": 10,
"confirmed_opt_in": true
}In a campaign the variables are the same for everyone. {{phone}} is filled with each recipient's number; {{name}} is left empty because numbers carry no name.
Twilio devices (official WhatsApp)
If you added your Twilio account's official WhatsApp number as a device, it is listed in GET /devices like any device, with provider = twilio. It becomes ready once Twilio approves the number.
Official WhatsApp only accepts templates approved by Meta, so a Twilio device sends one type: twilio_template. List the approved templates, then send with the content_sid and values for {{1}}, {{2}}...
curl https://api.isender360.com/api/v2/isender/devices/14/twilio-templates \
-H "Authorization: Bearer YOUR_API_KEY"
{ "success": true, "data": [
{ "content_sid": "HX0123456789abcdef0123456789abcdef", "name": "order_ready",
"language": "ar", "category": "UTILITY",
"body": "مرحبا {{1}}، طلبك {{2}} جاهز", "variables": ["1", "2"] }
] }curl -X POST https://api.isender360.com/api/v2/isender/devices/14/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1023-ready" \
-d '{
"type": "twilio_template",
"recipient": "966500000000",
"payload": {
"content_sid": "HX0123456789abcdef0123456789abcdef",
"variables": { "1": "Ahmed", "2": "1023" }
}
}'| Item | Details |
|---|---|
| Campaigns | Same POST /campaigns with a Twilio device_id and type: twilio_template. Write {{phone}} in a value to use each recipient's number. |
| Statuses and webhooks | Same statuses (sent, delivered, read, failed) and the same webhook events, including message.received for incoming messages. |
| Other types | Any type other than twilio_template on a Twilio device returns 422. |
| Cost | Twilio messages are billed in your Twilio account and do not use your plan's message quota. |
Message status
Prefer the webhook over polling. Possible statuses:
| Status | Meaning |
|---|---|
pending | Queued |
accepted | Handed to WhatsApp |
sent | Sent |
delivered | Delivered to the recipient's phone |
read | Read by the recipient |
failed / blocked | Failed, or blocked because of quota/subscription |
Campaigns
One message to many numbers (up to 1,000) with a gap between messages.
You can also send template_id and variables instead of type and payload (see Send with a template).
curl -X POST https://api.isender360.com/api/v2/isender/campaigns \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: friday-offer-2026-11-27" \
-d '{
"device_id": 12,
"name": "Friday offer",
"type": "text",
"payload": { "text": "20% off today only" },
"recipients": ["966500000000", "966511111111"],
"delay_seconds": 10,
"send_after": "2026-11-27T09:00:00+03:00",
"confirmed_opt_in": true
}'confirmed_opt_in is required: it confirms recipients agreed to receive your messages. Minimum gap is 3 seconds; we recommend 10.
Webhooks
Add an https URL in Dashboard → API & webhooks → Webhook and choose the events. The signing secret (whsec_...) is shown once.
| Event | When |
|---|---|
message.sent | A message was sent |
message.delivered | Delivered to the recipient |
message.read | Read by the recipient |
message.failed | Failed, with error_code |
message.received | Incoming message to your number (opt-in; text only if you enable it) |
device.connected | A device connected |
device.disconnected | A device disconnected |
campaign.completed | A campaign finished, with sent/delivered/failed counts |
What your endpoint receives
POST https://your-system.com/isender/webhook
Content-Type: application/json
User-Agent: iSender360-Webhooks/1.0
X-iSender-Event: message.delivered
X-iSender-Delivery: evt_8f2a41c0d9e7b3a5f6c1e2d4
X-iSender-Signature: t=1795680900,v1=5f2b9c…e81a
{
"id": "evt_8f2a41c0d9e7b3a5f6c1e2d4",
"type": "message.delivered",
"created_at": "2026-11-26T10:15:42Z",
"data": {
"message_id": 1523,
"device_id": 12,
"campaign_id": null,
"to": "966500000000",
"status": "delivered",
"error_code": null,
"idempotency_key": "order-1023-ready",
"timestamp": "2026-11-26T10:15:42Z"
}
}Verify the signature
Signature = HMAC-SHA256 of t + "." + the raw body, keyed with your signing secret. Reject requests with a wrong signature or older than 5 minutes.
<?php
$secret = getenv('ISENDER_WEBHOOK_SECRET'); // whsec_...
$body = file_get_contents('php://input');
$header = $_SERVER['HTTP_X_ISENDER_SIGNATURE'] ?? '';
parse_str(str_replace(',', '&', $header), $sig);
$expected = hash_hmac('sha256', ($sig['t'] ?? '') . '.' . $body, $secret);
if (!isset($sig['v1']) || !hash_equals($expected, $sig['v1'])
|| abs(time() - (int) $sig['t']) > 300) {
http_response_code(401);
exit;
}
$event = json_decode($body, true);
// Skip events you already processed (same $event['id']).
// ... update your order / CRM here ...
http_response_code(200);import crypto from "node:crypto";
import express from "express";
const app = express();
app.post("/isender/webhook", express.raw({ type: "application/json" }), (req, res) => {
const sig = Object.fromEntries(
(req.get("X-iSender-Signature") || "").split(",").map(p => p.split("=")));
const expected = crypto.createHmac("sha256", process.env.ISENDER_WEBHOOK_SECRET)
.update(sig.t + "." + req.body.toString("utf8")).digest("hex");
const fresh = Math.abs(Date.now() / 1000 - Number(sig.t)) <= 300;
if (!sig.v1 || !fresh || !crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(sig.v1))) {
return res.sendStatus(401);
}
const event = JSON.parse(req.body.toString("utf8"));
// ... handle event.type ...
res.sendStatus(200);
});import hmac, hashlib, os, time
from flask import Flask, request, abort
app = Flask(__name__)
@app.post("/isender/webhook")
def isender_webhook():
sig = dict(p.split("=", 1) for p in request.headers.get("X-iSender-Signature", "").split(",") if "=" in p)
body = request.get_data(as_text=True)
expected = hmac.new(os.environ["ISENDER_WEBHOOK_SECRET"].encode(),
f"{sig.get('t')}.{body}".encode(), hashlib.sha256).hexdigest()
if not hmac.compare_digest(expected, sig.get("v1", "")) or abs(time.time() - int(sig.get("t", 0))) > 300:
abort(401)
event = request.get_json()
# ... handle event["type"] ...
return "", 200Responses and retries
- Answer with any 2xx within 5 seconds. Redirects are not followed.
- On failure we retry after 1 min, 5 min, 30 min, 2 h and 6 h.
- After 15 failures in a row the webhook is paused and you get a notification; save the settings to turn it back on.
- An event can arrive twice; use its id to ignore duplicates.
Security, isolation and limits
- Isolation: every account is fully separate. Any device, message or campaign id that is not yours returns 404.
- Keys are stored hashed and cannot be shown again; the webhook secret is stored encrypted.
- Webhook URLs must be public https; internal addresses (localhost, 192.168.x...) are refused.
- Quota: each message counts against your plan, and is refunded if WhatsApp rejects it before sending.
- 60 requests per minute per key; over that you get 429 with Retry-After.
- Every request is logged against its key (method, path, result) for 30 days.
Error codes
| Code | Meaning |
|---|---|
| 401 | Missing, wrong or revoked key |
| 403 | Account inactive, or not an API key |
| 404 | Device, message or campaign is not in your account |
| 409 | Device is not connected |
| 422 | Invalid data (bad number, quota used up...) with details in errors |
| 429 | Rate limit hit; wait for Retry-After |
| 502 | Temporary WhatsApp gateway problem; retry later |