Get Started
Run a first WhatsApp-Meta-Business-API-Handler example
Run a first WhatsApp-Meta-Business-API-Handler example: A lightweight, easy-to-use TypeScript wrapper for WhatsApp Cloud API. Send messages, media, buttons, and more with full type safety.
Start with the smallest workflow described by the README for WhatsApp-Meta-Business-API-Handler. Complete installation and configuration first.
Quick Start
Basic Setup
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
import { createWhatsAppHandlerFromEnv } from './whatsapp-handler';
// Reads from process.env automatically
const whatsapp = createWhatsAppHandlerFromEnv();Required environment variables:
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_secretNext task
Read the usage guide for the documented components, configuration, and source layout.
Source and help
The catalog identifies the license as MIT. Read the repository license before redistributing source or assets.
Source captured: 2026-10-11
