Type-Safe
Full TypeScript strict mode with comprehensive type definitions. Catch errors at compile time, not in production.
pnpm add meta-cloud-api import WhatsApp from 'meta-cloud-api';
const client = new WhatsApp({
accessToken: process.env.CLOUD_API_ACCESS_TOKEN,{"
"} phoneNumberId: Number(process.env.WA_PHONE_NUMBER_ID),{"
"}{"}"});
await client.messages.text({
to: '15551234567',{"
"} body: 'Hello from meta-cloud-api!',{"
"}{"}"});
// ✓ Message sent successfully Type-Safe
Full TypeScript strict mode with comprehensive type definitions. Catch errors at compile time, not in production.
17 API Modules
Messages, media, templates, flows, groups, calling, payments, and more — every WhatsApp Cloud API endpoint covered.
Framework Adapters
Built-in webhook handlers for Express.js and Next.js. App Router and Pages Router both supported out of the box.
Production Ready
Battle-tested error handling, retry logic, and utilities. Tree-shakeable imports keep your bundle lean.