Find your channel_id for sends, check connection health, and troubleshoot a linked WhatsApp number with wazapin.channels.

List channels

const { data } = await wazapin.channels.list({ limit: 20 });

for (const channel of data.items) {
  console.log(channel.id);
}

Iterate all channels

for await (const channel of wazapin.channels.listPaginated({ limit: 50 })) {
  console.log(channel.id);
}

Get one channel

const channel = await wazapin.channels.get("wzp_ch_123");

Check channel status

const status = await wazapin.channels.status("wzp_ch_123");

Setup helpers

The SDK also exposes channel setup helpers for workspaces that need them:
await wazapin.channels.connect("wzp_ch_123");
const qr = await wazapin.channels.getQr("wzp_ch_123");
const health = await wazapin.channels.phoneHealth("wzp_ch_123");