Getting Started Guide
Follow these steps to connect your WhatsApp number and send your first message.
Step 1: Connect your WhatsApp account
1. Log in to your WAMA Dashboard.
2. Go to the Instances tab and click Connect on the desired number.
3. A QR code will display. Open WhatsApp on your phone, go to Linked Devices -> Link a Device, and scan the QR code.
4. Once connected, your profile name and picture will sync, and your status will change to "Connected".
Step 2: Obtain your Instance API Key
Every WhatsApp instance you connect generates a unique whatsapp_api_key. Copy this key from the instance card on the dashboard. This key authenticates your HTTP requests for this specific number.
Keep your API keys secret. Anyone with access to your whatsapp_api_key can send messages from your linked number.
Step 3: Send your first message
Make a simple HTTP POST request using FormData to the /send-message.php endpoint to send a message. Here is a simple example using cURL:
curl
curl -X POST https://api.wa-ma.org/send-message.php \
-F "whatsapp_api_key=YOUR_INSTANCE_API_KEY" \
-F "recipient=966501234567" \
-F "message=Hello, World! WAMA API is successfully configured. 🚀"