POST /api/create-message| Parameter | Type | Required | Description |
|---|---|---|---|
| authkey | string | Yes | User auth key |
| appkey | string | Yes | App key (WhatsApp device) |
| to | string | Yes | Recipient phone number, max 13 chars |
| template_id | string | Yes | UUID of the template (from Dashboard → My Templates) |
| variables | object | No | Placeholder values. Keys: "1", "2", ... (string indices). Values: replacement text |
TEMPLATE_UUID_FROM_DASHBOARD with the actual template UUID. Adjust variable keys to match your template placeholders.curl --location --request POST '/api/create-message' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"authkey": "{{authkey}}",
"appkey": "{{appkey}}",
"to": "966501234567",
"template_id": "TEMPLATE_UUID_FROM_DASHBOARD",
"variables": {
"1": "Customer Name",
"2": "Order #123"
}
}'{}