Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Install @wazapin/sdk, find your channel id, and send your first WhatsApp message.
npm install @wazapin/sdk
export WAZAPIN_API_KEY="wzp_..."
import { WazapinClient } from "@wazapin/sdk"; const wazapin = new WazapinClient(); const { data: channels } = await wazapin.channels.list({ limit: 10 }); console.log(channels.items[0]?.id); // use as channel_id
import { WazapinClient, textMessage } from "@wazapin/sdk"; const wazapin = new WazapinClient(); const { data: message } = await wazapin.messages.send( textMessage({ channel_id: "wzp_ch_123", to: "6281234567890", body: "Hello from Wazapin", }), ); console.log("sent", message.id);
const { data: health } = await wazapin.system.health(); console.log(health.status);