Overview
The WhatsApp WAHA Dashboard connects to your WhatsApp account through the WAHA (WhatsApp HTTP API) server. This guide will walk you through the entire setup process, from configuring WAHA to scanning the QR code and verifying your connection.Prerequisites
Before you begin, ensure you have:- A WhatsApp account on your mobile device
- Access to the WAHA server (local or hosted)
- WAHA API credentials (API URL and API Key)
- Administrator access to configure environment variables
Setting Up WAHA Server
Environment Configuration
First, configure your WAHA connection in the.env file:
If you’re using a hosted WAHA instance, replace
localhost:3000 with your WAHA server URL.WAHA Server Options
You have several options for running WAHA:- Local Docker Installation - Run WAHA on your local machine
- Cloud Hosted - Deploy WAHA to a VPS or cloud provider
- Managed Service - Use a managed WAHA hosting service
Connecting Your WhatsApp Account
Navigate to Dashboard
Log in to your WAHA Dashboard account and navigate to the main dashboard page.
Initiate Connection
Look for the “Connect WhatsApp” button or WhatsApp session section. Click to start the connection process.
Generate QR Code
The system will communicate with your WAHA server to generate a unique QR code for authentication.
Scan QR Code
Using your WhatsApp mobile app:
- Open WhatsApp on your phone
- Tap Settings (or Menu on Android)
- Select Linked Devices
- Tap Link a Device
- Point your camera at the QR code on screen
Understanding WhatsApp Sessions
Session Status
Your WhatsApp session can have different statuses:- CONNECTED - Active and ready to send messages
- DISCONNECTED - Session is not active
- FAILED - Connection error occurred
Session Management
The dashboard provides real-time session monitoring with:- Auto-refresh capabilities to check connection status
- Manual restart options when issues occur
- Session metadata including creation date and last update
Viewing Connected Groups
Once connected, the system automatically syncs your WhatsApp groups:Review Group List
You’ll see all your WhatsApp groups with:
- Group names
- Group IDs
- Associated campaigns
- Search and pagination capabilities
Troubleshooting
QR Code Not Displaying
QR Code Not Displaying
Possible causes:
- WAHA server is not running
- Incorrect
WAHA_API_URLin environment variables - Network connectivity issues
- Verify WAHA server is running:
curl http://your-waha-url/health - Check environment variables in
.envfile - Ensure firewall allows connection to WAHA server
- Review application logs for detailed error messages
Connection Drops Frequently
Connection Drops Frequently
Possible causes:
- Unstable internet connection
- WAHA server restarts
- WhatsApp Web session limits
- Ensure WAHA server has stable internet connection
- Use process manager (PM2) to keep WAHA running
- Limit number of linked devices on your WhatsApp account
- Use the manual restart feature in the dashboard
Groups Not Showing Up
Groups Not Showing Up
Possible causes:
- Session not fully synchronized
- API permission issues
- Groups created after connection
- Refresh the session in the dashboard
- Disconnect and reconnect WhatsApp
- Verify WAHA API key has proper permissions
- Wait a few moments for sync to complete
Invalid API Key Error
Invalid API Key Error
Possible causes:
- Incorrect
WAHA_API_KEYin environment variables - API key expired or revoked
- Verify the API key in your
.envfile matches your WAHA server configuration - Generate a new API key from your WAHA server
- Restart the application after updating environment variables
Best Practices
Keep WAHA Running
Use a process manager like PM2 to ensure your WAHA server stays online 24/7.
Monitor Connection
Regularly check your session status in the admin dashboard to catch issues early.
Secure Your API Key
Never commit your WAHA_API_KEY to version control. Use environment variables.
Plan for Restarts
Sessions may need occasional restarts. Use the dashboard’s restart feature when needed.
Next Steps
Now that your WhatsApp is connected, you can:Create Campaigns
Learn how to create and schedule message campaigns
Manage Users
Set up user access and permissions