Quickstart
The APIMASTER API lets your website, store or ERP send WhatsApp messages through your connected WhatsApp Business number, keep contacts and consent in sync, and receive signed webhooks for every message. Messages go through the official WhatsApp Business Platform (Cloud API); Meta's rules are enforced on the server, so your code cannot accidentally break them.
You need the Growth or Business plan, a connected WhatsApp number, and at least one template approved by Meta.
1. Create an API key
In the app go to Settings → Developer → API keys, choose the scopes you need and copy the key (shown once). Store it as a secret — never in front-end code.
2. Create the contact with consent
curl -X POST https://app.apimaster.in/v1/public/contacts \
-H "Authorization: Bearer $APIMASTER_KEY" -H "Content-Type: application/json" \
-d '{"wa_id":"919812345678","name":"Asha (demo)","consent":{"utility":true,"evidence":"Checkout opt-in checkbox, order #4411"}}'
3. Send an approved template
curl -X POST https://app.apimaster.in/v1/public/messages \
-H "Authorization: Bearer $APIMASTER_KEY" -H "Content-Type: application/json" \
-d '{"to":"+919812345678","template":{"name":"order_shipped","language":"en","variables":["Asha","AM-2041"]}}'
The answer is 202 {"id":"…","status":"queued"}. Delivery and read receipts arrive as webhooks or via GET /v1/public/messages/{id}.
4. Node.js example
const res = await fetch('https://app.apimaster.in/v1/public/messages', {
method: 'POST',
headers: { authorization: `Bearer ${process.env.APIMASTER_KEY}`, 'content-type': 'application/json' },
body: JSON.stringify({ to: '+919812345678', template: { name: 'order_shipped', language: 'en', variables: ['Asha', 'AM-2041'] } }),
});
const json = await res.json();
if (!res.ok) throw new Error(json.error.code); // e.g. outside_service_window, no_consent
console.log(json.id);