Send WhatsApp messages using simple GET requests. No complex setup — just your token, instance ID, and recipient JID.
Overview
The Anexg Tech WhatsApp API allows you to send WhatsApp messages using simple HTTP GET requests. No special libraries or SDKs required — any HTTP client, browser, or cURL command works out of the box.
Authentication
Every API request requires two authentication parameters:
Parameter
Description
token
Your unique API token. Find it in your dashboard under Settings → API Token.
instance_id
Your WhatsApp instance ID. Find it in your dashboard under Instances.
JID Format (Recipient)
The jid parameter is the recipient's WhatsApp ID in the following format:
// Format: {CountryCode}{PhoneNumber}@s.whatsapp.net919999999999@s.whatsapp.net// Example: Indian number +91 98765 43210919876543210@s.whatsapp.net
Response Format
All API endpoints return a JSON response. There are two possible outcomes:
✅ Success Response
{"success": true,
"message": "Message sent successfully!",
"response": "<RESPONSE>"}
❌ Failed Response
{"success": false,
"message": "<REASON>"}
📝
Send Text Message
Send a plain text message to any WhatsApp number using a GET request.
curl -X GET "https://connect.gnetworkservices.in/api/v1/send-text?token=YOUR_TOKEN&instance_id=YOUR_INSTANCE_ID&jid=919876543210@s.whatsapp.net&msg=Hello%20from%20Anexg%20Tech!"
✅ Success
{"success": true,
"message": "Message sent successfully!",
"response": "<RESPONSE>"}
❌ Failed
{"success": false,
"message": "<REASON>"}
📄
Send Document
Send any document file (PDF, DOCX, XLSX, etc.) to a WhatsApp number using a publicly accessible URL.
Publicly accessible URL of the document e.g. https://someimage.com/somepdf.pdf
Example Request
curl -X GET "https://connect.gnetworkservices.in/api/v1/send-doc?token=YOUR_TOKEN&instance_id=YOUR_INSTANCE_ID&jid=919876543210@s.whatsapp.net&caption=Please%20find%20the%20invoice&docurl=https://yoursite.com/invoice.pdf"
✅ Success
{"success": true,
"message": "Message sent successfully!",
"response": "<RESPONSE>"}
❌ Failed
{"success": false,
"message": "<REASON>"}
🖼️
Send Image
Send an image (JPG, PNG, WEBP, etc.) to a WhatsApp number with an optional caption.
Publicly accessible image URL e.g. https://someimage.com/image.jpg
Example Request
curl -X GET "https://connect.gnetworkservices.in/api/v1/send-image?token=YOUR_TOKEN&instance_id=YOUR_INSTANCE_ID&jid=919876543210@s.whatsapp.net&caption=Check%20this%20out!&imageurl=https://yoursite.com/banner.jpg"
✅ Success
{"success": true,
"message": "Message sent successfully!",
"response": "<RESPONSE>"}
❌ Failed
{"success": false,
"message": "<REASON>"}
🎥
Send Video
Send a video file (MP4 recommended) to a WhatsApp number with an optional caption.
Publicly accessible video URL e.g. https://someimage.com/video.mp4
Example Request
curl -X GET "https://connect.gnetworkservices.in/api/v1/send-video?token=YOUR_TOKEN&instance_id=YOUR_INSTANCE_ID&jid=919876543210@s.whatsapp.net&caption=Watch%20this%20video!&videourl=https://yoursite.com/promo.mp4"
✅ Success
{"success": true,
"message": "Message sent successfully!",
"response": "<RESPONSE>"}
❌ Failed
{"success": false,
"message": "<REASON>"}
🎵
Send Audio
Send an audio message (MP3, OGG, etc.) to a WhatsApp number.
Publicly accessible audio URL e.g. https://someimage.com/audio.mp3
Example Request
curl -X GET "https://connect.gnetworkservices.in/api/v1/send-audio?token=YOUR_TOKEN&instance_id=YOUR_INSTANCE_ID&jid=919876543210@s.whatsapp.net&audiourl=https://yoursite.com/audio.mp3"
✅ Success
{"success": true,
"message": "Message sent successfully!",
"response": "<RESPONSE>"}
❌ Failed
{"success": false,
"message": "<REASON>"}
Error Codes
When success is false, the message field will contain a reason. Common failure reasons:
Reason
Cause
Solution
Invalid token
Token is wrong or expired
Get your token from Dashboard → Settings → API Token
Instance not found
Wrong instance_id
Check instance ID in your Dashboard → Instances
Instance not connected
WhatsApp disconnected
Re-scan the QR code in your Dashboard
Invalid JID format
JID format incorrect
Use format: 91XXXXXXXXXX@s.whatsapp.net
URL not accessible
Media URL is private or broken
Ensure the media URL is publicly accessible
Quota exceeded
Daily message limit reached
Upgrade your plan or wait for quota reset
Rate Limits
API rate limits apply per token, per plan:
Plan
Messages / Day
Requests / Minute
Free Trial (5 Days)
500 total
10
Basic (30 Days)
Unlimited
60
Pro (31 Days) ⭐
Unlimited
200
Basic Annual
Unlimited
60
Pro Annual
Unlimited
500
Get Your API Token Now
Sign up for a free 5-day trial and start sending WhatsApp messages via API today.