Send a template message
Once your template is Meta-approved, send it via the API or dashboard. This page covers the API path.
cURL
curl https://api.waxiomatic.com/v1/messages \
-H "Authorization: Bearer $WAXIOMATIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+919876543210",
"phoneNumberId": "<your-phone-number-id>",
"type": "template",
"template": {
"name": "order_shipped",
"language": "en_US",
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Aarav" },
{ "type": "text", "text": "12345" }
]
}
]
}
}'TypeScript SDK
import { WaxiomaticClient } from '@waxiomatic/sdk-js';
const wax = new WaxiomaticClient({ apiKey: process.env.WAXIOMATIC_API_KEY! });
await wax.messages.sendTemplate({
to: '+919876543210',
phoneNumberId: 'phone_xxxxx',
template: 'order_shipped',
language: 'en_US',
variables: { '1': 'Aarav', '2': '12345' },
});Response
{
"id": "wamid.HBgN…",
"status": "queued",
"to": "+919876543210",
"templateName": "order_shipped",
"phoneNumberId": "phone_xxxxx",
"createdAt": "2026-05-18T10:24:31.000Z"
}Status tracking
Messages move through statuses: queued → sent → delivered → read (or failed). Use webhooks to receive push updates instead of polling.
Free-form (24h window)
After a customer messages you, you have a 24-hour window to reply with any text/media without a template. After the window closes, you can only send templates.
await wax.messages.sendText({
to: '+919876543210',
phoneNumberId: 'phone_xxxxx',
text: 'Thanks for reaching out! How can we help?',
});Conversation pricing. Meta charges per 24-hour conversation window (varies by country + category). Marketing conversations are ~3x the cost of Utility. We pass Meta's charges through at cost.