Getting Started with WhatsApp SDK
This guide will help you create your first application using the WhatsApp SDK. You’ll learn how to set up the SDK, authenticate with WhatsApp, and send your first message.Prerequisites
Before you begin, make sure you have:- Node.js 20 or higher installed
- npm or yarn package manager
- Basic knowledge of TypeScript/JavaScript
- Chromium or Chrome browser (used by Puppeteer for WhatsApp Web)
Quick Start Example
Here’s a simple example to get you started with the WhatsApp SDK:Using the REST API
The WhatsApp SDK also provides a REST API that you can use to integrate with web applications:- Access the Swagger documentation at
http://localhost:3000/api/docs - Scan the QR code via the
/api/v1/client/qrendpoint - Send messages via the
/api/v1/messages/sendendpoint
Next Steps
Now that you’ve created your first WhatsApp SDK application, you can:Authentication
Learn about different authentication strategies.
Sending Messages
Explore advanced messaging capabilities.
Working with Chats
Learn how to manage chats and conversations.