GOWA - WhatsApp Automation via REST API
Interact with WhatsApp through GOWA (Go WhatsApp Web Multi-Device) REST API for personal automation tasks.
Installation & Setup
GOWA is available at: https://github.com/aldinokemal/go-whatsapp-web-multidevice
Download
Go to the releases page and download the zip matching your OS and architecture.
Release files are named: whatsapp_VERSION_OS_ARCH.zip
Available platforms: linux (amd64/arm64/386), darwin (amd64/arm64), windows (amd64/386)
Run REST Server
./gowa rest
The server starts on http://localhost:3000 by default.
Login (First Time)
Open http://localhost:3000 in a browser, scan the QR code with WhatsApp on your phone to link the device.
Production Setup
GOWA runs in REST mode:
- Base URL:
http://localhost:3000
- GOWA auto-connects to the device stored in the database — no
X-Device-Id header needed for single-device setups.
⚠️ Important: Use REST API (port 3000) only. Do NOT use MCP mode - all schedulers and automation depend on REST.
Quick Examples
Ghost Mention (mention all without @)
curl -X POST http://localhost:3000/send/message \
-H "Content-Type: application/json" \
-d '{
"phone": "120363040656010581@g.us",
"message": "Important announcement",
"mentions": ["@everyone"]
}'
Send Text Message
curl -X POST http://localhost:3000/send/message \
-H "Content-Type: application/json" \
-d '{"phone": "628123456789", "message": "Hello!"}'
Send Image
curl -X POST http://localhost:3000/send/image \
-F "phone=628xxx" \
-F "caption=Photo" \
-F "image=@/path/to/image.jpg"
Check Status
curl http://localhost:3000/app/status | jq .
Complete API Operations
Messages
Send Text with Ghost Mention:
- Endpoint:
POST /send/message
- Body:
{"phone": "group@g.us", "message": "text", "mentions": ["@everyone"]}
- @everyone mentions all members without showing @ in text ✅
Reply to Message:
- Body:
{"phone": "...", "message": "...", "reply_message_id": "msg_id"}
Disappearing Message:
- Body:
{"phone": "...", "message": "...", "duration": 86400} (seconds)
Forward Message:
- Body:
{"phone": "...", "message": "...", "is_forwarded": true}
Media
Send Image:
- Endpoint:
POST /send/image
- Form data:
phone, caption, image (file), compress (bool)
Send Document:
- Endpoint:
POST /send/file
- Form data:
phone, caption, file
Send Video:
- Endpoint:
POST /send/video
- Form data:
phone, caption, video, compress (bool)
Send Audio:
- Endpoint:
POST /send/audio
- Form data:
phone, audio
Send Sticker:
- Endpoint:
POST /send/sticker
- Form data:
phone, sticker (auto-converts to WebP)
Send Contact:
- Endpoint:
POST /send/contact
- Body:
{"phone": "...", "contact_name": "...", "contact_phone": "..."}
Send Location:
- Endpoint:
POST /send/location
- Body:
{"phone": "...", "latitude": 0.0, "longitude": 0.0}
Send Link:
- Endpoint:
POST /send/link
- Body:
{"phone": "...", "link": "...", "caption": "..."}
Send Poll:
- Endpoint:
POST /send/poll
- Body:
{"phone": "...", "question": "...", "options": ["A", "B"]}
Connection & Status
Get Status:
GET /app/status
- Returns:
{"is_connected": true, "is_logged_in": true}
Reconnect:
Logout:
Get QR Code (for login):
GET /app/login
- Returns: PNG image (QR code to scan)
Login with Pairing Code:
GET /app/login-with-code?phone=628xxx
Groups
List My Groups:
GET /user/my/groups
- Returns:
{results: {data: [...]}} - groups array is at .results.data
- Example:
curl ... | jq '.results.data[] | {Name, JID, Members: .Participants | length}'
- Max 500 groups (WhatsApp protocol limit)
Get Group Info:
GET /group/info?group_jid=xxx@g.us
Create Group:
POST /group
- Body:
{"name": "Group Name", "participants": ["628xxx@s.whatsapp.net"]}
Get Group Participants:
GET /group/participants?group_jid=xxx@g.us
Add Participant:
POST /group/participants
- Body:
{"group_jid": "...", "participants": ["628xxx@s.whatsapp.net"]}
Remove Participant:
POST /group/participants/remove
- Body:
{"group_jid": "...", "participants": ["628xxx@s.whatsapp.net"]}
Promote to Admin:
POST /group/participants/promote
- Body:
{"group_jid": "...", "participants": ["628xxx@s.whatsapp.net"]}
Demote from Admin:
POST /group/participants/demote
- Body:
{"group_jid": "...", "participants": ["628xxx@s.whatsapp.net"]}
Leave Group:
POST /group/leave
- Body:
{"group_jid": "..."}
Set Group Photo:
POST /group/photo
- Form data:
group_jid, photo
Set Group Name:
POST /group/name
- Body:
{"group_jid": "...", "name": "..."}
Set Group Description:
POST /group/topic
- Body:
{"group_jid": "...", "topic": "..."}
Get Invite Link:
GET /group/invite-link?group_jid=xxx@g.us
Join via Link:
POST /group/join-with-link
- Body:
{"link": "https://chat.whatsapp.com/..."}
Contacts & Chats
List Contacts:
Get Chats:
Get User Info:
GET /user/info?phone=628xxx
Check if User Exists:
GET /user/check?phone=628xxx
Message Operations
Revoke/Delete Message:
POST /message/{message_id}/revoke
React to Message:
POST /message/{message_id}/reaction
- Body:
{"emoji": "👍"}
Edit Message:
POST /message/{message_id}/update
- Body:
{"message": "edited text"}
Mark as Read:
POST /message/{message_id}/read
Star Message:
POST /message/{message_id}/star
Download Media:
GET /message/{message_id}/download
Phone Number Format
- User JID:
628123456789@s.whatsapp.net
- Group JID:
120363040656010581@g.us
- Phone only:
628123456789 (without +)
Ghost Mention Feature
How it works:
- Use
"mentions": ["@everyone"] in /send/message
- All group members get notification
- No @ symbol shown in message text (true ghost mention)
- Tested and confirmed working ✅
Example for schedulers:
curl -s -X POST http://localhost:3000/send/message \
-H 'Content-Type: application/json' \
-d '{"phone": "120363040656010581@g.us", "message": "Reminder text", "mentions": ["@everyone"]}' | jq .
API Reference
Full OpenAPI 3.0 spec available at:
Notes
- Auto-compresses images and videos before sending
- Auto-converts images to WebP for stickers
- Max 500 groups can be retrieved (WhatsApp protocol limit)
- All media files can be sent as file upload or URL
- Supports disappearing messages with custom duration
- Multi-device support available via
X-Device-Id header when running multiple devices
- Built by @aldinokemal: https://github.com/aldinokemal/go-whatsapp-web-multidevice
1---
2name: gowa
3description: Interact with WhatsApp via GOWA (Go WhatsApp Web Multi-Device) REST API for personal automation. Supports sending messages with ghost mentions (@everyone), images, documents, group management, and more. Always use REST mode (http://localhost:3000) for production.
4user-invocable: true
5command-dispatch: model
6metadata:
7 source: https://skillmd.com/skills/modbender/gowa
8---
9
10# GOWA - WhatsApp Automation via REST API
11
12Interact with WhatsApp through GOWA (Go WhatsApp Web Multi-Device) REST API for personal automation tasks.
13
14## Installation & Setup
15
16GOWA is available at: https://github.com/aldinokemal/go-whatsapp-web-multidevice
17
18### Download
19
20Go to the [releases page](https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases) and download the zip matching your OS and architecture.
21
22Release files are named: `whatsapp_VERSION_OS_ARCH.zip`
23
24Available platforms: `linux` (amd64/arm64/386), `darwin` (amd64/arm64), `windows` (amd64/386)
25
26### Run REST Server
27
28```bash
29./gowa rest
30```
31
32The server starts on `http://localhost:3000` by default.
33
34### Login (First Time)
35
36Open `http://localhost:3000` in a browser, scan the QR code with WhatsApp on your phone to link the device.
37
38## Production Setup
39
40**GOWA runs in REST mode:**
41- Base URL: `http://localhost:3000`
42- GOWA auto-connects to the device stored in the database — no `X-Device-Id` header needed for single-device setups.
43
44**⚠️ Important:** Use REST API (port 3000) only. Do NOT use MCP mode - all schedulers and automation depend on REST.
45
46## Quick Examples
47
48### Ghost Mention (mention all without @)
49```bash
50curl -X POST http://localhost:3000/send/message \
51 -H "Content-Type: application/json" \
52 -d '{
53 "phone": "120363040656010581@g.us",
54 "message": "Important announcement",
55 "mentions": ["@everyone"]
56 }'
57```
58
59### Send Text Message
60```bash
61curl -X POST http://localhost:3000/send/message \
62 -H "Content-Type: application/json" \
63 -d '{"phone": "628123456789", "message": "Hello!"}'
64```
65
66### Send Image
67```bash
68curl -X POST http://localhost:3000/send/image \
69 -F "phone=628xxx" \
70 -F "caption=Photo" \
71 -F "image=@/path/to/image.jpg"
72```
73
74### Check Status
75```bash
76curl http://localhost:3000/app/status | jq .
77```
78
79## Complete API Operations
80
81### Messages
82
83**Send Text with Ghost Mention:**
84- Endpoint: `POST /send/message`
85- Body: `{"phone": "group@g.us", "message": "text", "mentions": ["@everyone"]}`
86- **@everyone** mentions all members without showing @ in text ✅
87
88**Reply to Message:**
89- Body: `{"phone": "...", "message": "...", "reply_message_id": "msg_id"}`
90
91**Disappearing Message:**
92- Body: `{"phone": "...", "message": "...", "duration": 86400}` (seconds)
93
94**Forward Message:**
95- Body: `{"phone": "...", "message": "...", "is_forwarded": true}`
96
97### Media
98
99**Send Image:**
100- Endpoint: `POST /send/image`
101- Form data: `phone`, `caption`, `image` (file), `compress` (bool)
102
103**Send Document:**
104- Endpoint: `POST /send/file`
105- Form data: `phone`, `caption`, `file`
106
107**Send Video:**
108- Endpoint: `POST /send/video`
109- Form data: `phone`, `caption`, `video`, `compress` (bool)
110
111**Send Audio:**
112- Endpoint: `POST /send/audio`
113- Form data: `phone`, `audio`
114
115**Send Sticker:**
116- Endpoint: `POST /send/sticker`
117- Form data: `phone`, `sticker` (auto-converts to WebP)
118
119**Send Contact:**
120- Endpoint: `POST /send/contact`
121- Body: `{"phone": "...", "contact_name": "...", "contact_phone": "..."}`
122
123**Send Location:**
124- Endpoint: `POST /send/location`
125- Body: `{"phone": "...", "latitude": 0.0, "longitude": 0.0}`
126
127**Send Link:**
128- Endpoint: `POST /send/link`
129- Body: `{"phone": "...", "link": "...", "caption": "..."}`
130
131**Send Poll:**
132- Endpoint: `POST /send/poll`
133- Body: `{"phone": "...", "question": "...", "options": ["A", "B"]}`
134
135### Connection & Status
136
137**Get Status:**
138- `GET /app/status`
139- Returns: `{"is_connected": true, "is_logged_in": true}`
140
141**Reconnect:**
142- `GET /app/reconnect`
143
144**Logout:**
145- `GET /app/logout`
146
147**Get QR Code (for login):**
148- `GET /app/login`
149- Returns: PNG image (QR code to scan)
150
151**Login with Pairing Code:**
152- `GET /app/login-with-code?phone=628xxx`
153
154### Groups
155
156**List My Groups:**
157- `GET /user/my/groups`
158- Returns: `{results: {data: [...]}}` - groups array is at `.results.data`
159- Example: `curl ... | jq '.results.data[] | {Name, JID, Members: .Participants | length}'`
160- Max 500 groups (WhatsApp protocol limit)
161
162**Get Group Info:**
163- `GET /group/info?group_jid=xxx@g.us`
164
165**Create Group:**
166- `POST /group`
167- Body: `{"name": "Group Name", "participants": ["628xxx@s.whatsapp.net"]}`
168
169**Get Group Participants:**
170- `GET /group/participants?group_jid=xxx@g.us`
171
172**Add Participant:**
173- `POST /group/participants`
174- Body: `{"group_jid": "...", "participants": ["628xxx@s.whatsapp.net"]}`
175
176**Remove Participant:**
177- `POST /group/participants/remove`
178- Body: `{"group_jid": "...", "participants": ["628xxx@s.whatsapp.net"]}`
179
180**Promote to Admin:**
181- `POST /group/participants/promote`
182- Body: `{"group_jid": "...", "participants": ["628xxx@s.whatsapp.net"]}`
183
184**Demote from Admin:**
185- `POST /group/participants/demote`
186- Body: `{"group_jid": "...", "participants": ["628xxx@s.whatsapp.net"]}`
187
188**Leave Group:**
189- `POST /group/leave`
190- Body: `{"group_jid": "..."}`
191
192**Set Group Photo:**
193- `POST /group/photo`
194- Form data: `group_jid`, `photo`
195
196**Set Group Name:**
197- `POST /group/name`
198- Body: `{"group_jid": "...", "name": "..."}`
199
200**Set Group Description:**
201- `POST /group/topic`
202- Body: `{"group_jid": "...", "topic": "..."}`
203
204**Get Invite Link:**
205- `GET /group/invite-link?group_jid=xxx@g.us`
206
207**Join via Link:**
208- `POST /group/join-with-link`
209- Body: `{"link": "https://chat.whatsapp.com/..."}`
210
211### Contacts & Chats
212
213**List Contacts:**
214- `GET /user/my/contacts`
215
216**Get Chats:**
217- `GET /chats`
218
219**Get User Info:**
220- `GET /user/info?phone=628xxx`
221
222**Check if User Exists:**
223- `GET /user/check?phone=628xxx`
224
225### Message Operations
226
227**Revoke/Delete Message:**
228- `POST /message/{message_id}/revoke`
229
230**React to Message:**
231- `POST /message/{message_id}/reaction`
232- Body: `{"emoji": "👍"}`
233
234**Edit Message:**
235- `POST /message/{message_id}/update`
236- Body: `{"message": "edited text"}`
237
238**Mark as Read:**
239- `POST /message/{message_id}/read`
240
241**Star Message:**
242- `POST /message/{message_id}/star`
243
244**Download Media:**
245- `GET /message/{message_id}/download`
246
247## Phone Number Format
248
249- **User JID:** `628123456789@s.whatsapp.net`
250- **Group JID:** `120363040656010581@g.us`
251- **Phone only:** `628123456789` (without +)
252
253## Ghost Mention Feature
254
255**How it works:**
256- Use `"mentions": ["@everyone"]` in `/send/message`
257- All group members get notification
258- **No @ symbol shown in message text** (true ghost mention)
259- Tested and confirmed working ✅
260
261**Example for schedulers:**
262```bash
263curl -s -X POST http://localhost:3000/send/message \
264 -H 'Content-Type: application/json' \
265 -d '{"phone": "120363040656010581@g.us", "message": "Reminder text", "mentions": ["@everyone"]}' | jq .
266```
267
268## API Reference
269
270Full OpenAPI 3.0 spec available at:
271- OpenAPI: https://raw.githubusercontent.com/aldinokemal/go-whatsapp-web-multidevice/refs/heads/main/docs/openapi.yaml
272- GitHub: https://github.com/aldinokemal/go-whatsapp-web-multidevice
273
274## Notes
275
276- Auto-compresses images and videos before sending
277- Auto-converts images to WebP for stickers
278- Max 500 groups can be retrieved (WhatsApp protocol limit)
279- All media files can be sent as file upload or URL
280- Supports disappearing messages with custom duration
281- Multi-device support available via `X-Device-Id` header when running multiple devices
282- Built by @aldinokemal: https://github.com/aldinokemal/go-whatsapp-web-multidevice