Sending messages
Introduction
Welcome to GoWAPI – your reliable WhatsApp API platform. This guide will walk you through the steps to set up and start
sending messages using our powerful API. It's quick, secure, and developer-friendly.
Step 1: Create an Account
- Go to the registration page.
- Fill in your details and verify your email address.
- Once verified, log in to access your dashboard.
Step 2: Create Your First WhatsApp Device/Session
1. Log In to Your Dashboard: Access your account.
2. Navigate to the Devices Section: In the dashboard, go to the Devices tab.
3. Create a New Device: Click on Create New Device.
4. Scan the QR Code: A QR code will appear. Open WhatsApp on your phone, go to Settings > Linked Devices, and scan the
QR code to link your WhatsApp account.
5. Session Activation: Once scanned, your session will connected, and you can copy your API key.
Step 3: In the Devices panel you will find the information to use the API
- - Session name: {session}
- - Server Hub URL: {hub.server}
- - API Key of your session: {YOUR-Api-Key}
Do not use curly braces { } – Curly braces are only informative and indicate that it is a variable.
For a more advanced walkthrough, check config Device
Step 4: Send Your First Message
API Endpoint
POST https://{hub.server}/api/sendText
Headers
Accept: application/json
Content-Type: application/json
X-Api-Key: {YOUR-Api-Key}
Request Body
{
"chatId": "212612345678",
"text": "Hello from GoWAPI!",
"session": "{session}"
}
Note: "chatId" is the recipient's number. The number you're messaging must have agreed to receive WhatsApp messages.
Step 5: Track Message Delivery
You can track the status of your messages through the session page or set up webhooks for real-time updates.
You can send various types of messages, files, images, videos, and more. Access the complete API documentation to learn about all the features.