# Run a first WhatsApp-Meta-Business-API-Handler example

Start with the smallest workflow described by the README for **WhatsApp-Meta-Business-API-Handler**. Complete [installation and configuration](/docs/up-to-code-whatsapp-meta-business-api-handler/installation-guide) first.

## Quick Start

### Basic Setup

```typescript
import { createWhatsAppHandler } from './whatsapp-handler';

const whatsapp = createWhatsAppHandler({
  token: 'YOUR_ACCESS_TOKEN',
  phoneNumberId: 'YOUR_PHONE_NUMBER_ID',
  webhookVerifyToken: 'YOUR_VERIFY_TOKEN'
});

// Send a message
await whatsapp.sendMessage('1234567890', 'Hello from WhatsApp!');
```

### Using Environment Variables

```typescript
import { createWhatsAppHandlerFromEnv } from './whatsapp-handler';

// Reads from process.env automatically
const whatsapp = createWhatsAppHandlerFromEnv();
```

Required environment variables:
```env
WHATSAPP_TOKEN=your_access_token
WHATSAPP_PHONE_NUMBER_ID=your_phone_number_id
WHATSAPP_WEBHOOK_VERIFY_TOKEN=your_verify_token
WHATSAPP_APP_SECRET=your_app_secret
```

---

## Next task

[Read the usage guide](/docs/up-to-code-whatsapp-meta-business-api-handler/usage-guide) for the documented components, configuration, and source layout.

## Source and help

- [GitHub repository](https://github.com/qentrah/WhatsApp-Meta-Business-API-Handler)
- [Original README](https://github.com/qentrah/WhatsApp-Meta-Business-API-Handler/blob/main/README.md)
- [Issues and existing reports](https://github.com/qentrah/WhatsApp-Meta-Business-API-Handler/issues)

The catalog identifies the license as **MIT**. Read the repository license before redistributing source or assets.