---
title: "Quickstart"
description: "Install @wazapin/sdk, find your channel id, and send your first WhatsApp message."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.wazapin.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

:::note
New to the SDK? Read the [TypeScript SDK](/sdk/typescript) overview first.
:::

## Install

```bash
npm install @wazapin/sdk
```

## Set your API key

```bash
export WAZAPIN_API_KEY="wzp_..."
```

## Find your channel id

```ts
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
```

Connect WhatsApp in the [app](https://app.wazapin.com) first if the list is empty. See [Connect your channel](/getting-started/connect-channel).

## Send a text message

```ts
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);
```

## Check API health

```ts
const { data: health } = await wazapin.system.health();

console.log(health.status);
```

Source: https://docs.wazapin.id/sdk/quickstart/index.mdx
