IDEN
Wacommerce

Quickstart

Send your first WhatsApp message via the Public API in a few lines.

You need: an `nxk_live_xxx` API key from the Developers page and a recipient in E.164 format (`+628123456789`).

Send text (cURL)

bashcurl https://dashboard.wacommerce.id/api/public/v1/messages \
  -H "Authorization: Bearer nxk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+628123456789",
    "type": "text",
    "text": { "body": "Halo dari Wacommerce 👋" }
  }'

TypeScript

typescriptconst res = await fetch("https://dashboard.wacommerce.id/api/public/v1/messages", {
  method: "POST",
  headers: {
    Authorization: "Bearer nxk_live_xxx",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    to: "+628123456789",
    type: "text",
    text: { body: "Halo dari Wacommerce 👋" }
  })
});
const data = await res.json();

Python

pythonimport requests

requests.post(
    "https://dashboard.wacommerce.id/api/public/v1/messages",
    headers={"Authorization": "Bearer nxk_live_xxx"},
    json={"to": "+628123456789", "type": "text", "text": {"body": "Halo dari Wacommerce"}},
)

Next steps

  • Attach a webhook to receive replies
  • Learn templates for messages outside the 24-hour window