Build messaging into your own product
Build WhatsApp into your own product — campaigns, templates, chatbots, media and webhooks over a clean REST API.
- Base URL
https://api.nuke.co.in/api/v1/developer
# Send an approved template to your customers
curl -X POST "https://api.nuke.co.in/api/v1/developer/whatsapp/campaign" \
-H "Authorization: Bearer cfs_your_token" \
-H "Content-Type: application/json" \
-d '{
"template_name": "diwali_offer",
"numbers": ["919876543210", "919812345678"],
"attribute1": "Rahul"
}'
const res = await fetch('https://api.nuke.co.in/api/v1/developer/whatsapp/campaign', {
method: 'POST',
headers: {
Authorization: 'Bearer ' + process.env.INDEW_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify({
template_name: 'diwali_offer',
numbers: ['919876543210'],
attribute1: 'Rahul',
}),
});
const { data } = await res.json();
console.log(data.request_id, data.status); // "queued"
$ch = curl_init('https://api.nuke.co.in/api/v1/developer/whatsapp/campaign');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('INDEW_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'template_name' => 'diwali_offer',
'numbers' => ['919876543210'],
'attribute1' => 'Rahul',
]),
]);
$result = json_decode(curl_exec($ch), true);
One API for the whole platform
Everything your team does in the panel can be automated from your own systems.
Campaigns & session messages
Send templates to one or thousands of numbers with JSON or a CSV upload, and reply inside the 24-hour window.
Templates
Create templates — including carousels, Flows and OTP — and check their approval status.
Chatbots & automations
Create, edit, switch on and delete chatbots and keyword automations using the same JSON as the visual builder.
Webhooks
Receive incoming messages, delivery statuses and copies of bot replies on your own URL, signed with your secret key.
Media
Upload files for replies and download the images, videos, voice notes and documents customers send you.
Tokens for every account
A master token acts for you and every account under you; account tokens are locked to one client.
Your app and Indew, talking both ways
Call the API to send; receive everything that happens next on your webhook.
- Your appCRM, website, ERP or your own panel
- Developer APIPOST /whatsapp/campaign with your token
- WhatsAppDelivered to your customer
- Your webhookReplies, statuses and bot replies arrive back
The API at a glance
All paths are relative to the base URL. Send your token as Authorization: Bearer … or x-api-key.
Tokens & accounts
/tokensCreate a master token (panel login)/tokensList your tokens — prefix and last use only/tokens/{id}Revoke a token/accounts/tokensIssue an account token for one client/accounts/tokensList the account tokens you issuedMessaging
/whatsapp/campaignSend a template campaign — JSON or a CSV upload/whatsapp/sessionSend a message inside the 24-hour window/whatsapp/subscribeForward a number’s events to your webhookTemplates & account
/whatsapp/templateCreate a template and submit it to Meta/whatsapp/template/statusCheck a template’s approval status/whatsapp/phone-numbersYour number, quality rating and throughput/whatsapp/business-profileRead the business profile/whatsapp/business-profileUpdate the business profileChatbots & automations
/whatsapp/chatbotsList chatbots/whatsapp/chatbotsCreate a chatbot — flow JSON and keywords in one call/whatsapp/chatbots/{id}Rename, switch on or off, or replace the flow/whatsapp/chatbots/check-nameCheck that a chatbot name is free/whatsapp/automationsCreate a keyword automation/whatsapp/automations/{id}Change keywords, matching or status/whatsapp/automations/{id}Delete an automation/whatsapp/automation-textsSaved text replies — also POST, PUT, DELETEMedia & files
/whatsapp/filesUpload a file to reply with/whatsapp/filesList the account’s files/whatsapp/media/{media_id}Download media a customer sent youTwo kinds of token, one simple rule
Pick the one that matches how your system is built.
Master token
Belongs to your main account. Acts for you and every client or reseller under you — pass the account’s username on each call. Campaign credits are charged to your main account.
Account token
Issued by your master token for one client. Locked to that account, so no username is needed — ideal when each client is configured separately in your panel.
Everything that happens, on your URL
Subscribe a number once. Every event arrives in Meta’s webhook format, signed with your secret key in the X-Secret-Key header.
messagesIncoming messages — text, button taps, images, voice notes, documents and locations.
statusesSent, delivered, read and failed updates for every message you send.
message_echoesCopies of replies sent by chatbots and automations, so your inbox stays complete.
From token to first message in four steps
-
01
Create a token
Generate a developer token from your panel login.
-
02
Subscribe a webhook
Point your number’s events at your own URL.
-
03
Send your first message
Call the campaign endpoint with an approved template.
-
04
Go live
Move from testing to production traffic.
Developer questions
How do I get API access?
Log in to your Indew panel and create a developer token, or ask your account manager. The full token is shown only once — store it safely.
Which formats are supported?
JSON over HTTPS. Campaigns can also be sent as multipart form data with a CSV file.
Can I manage my clients’ accounts?
Yes. A master token can act for any account under you by passing its username, and you can issue account tokens for individual clients.
Do I get webhooks for bot replies?
Yes. Replies sent by chatbots and automations arrive on your webhook as message_echoes events, so your inbox stays complete.