WA Automate API Reference
REST API for WhatsApp automation. All endpoints require X-API-Key header (if configured).
| GET | /api/session | Get session info |
| GET | /api/session/qr | Get current QR code |
| GET | /api/session/state | Get session state |
| GET | /api/session/me | Get logged-in user info |
| POST | /api/session/start | Start session |
| POST | /api/session/stop | Stop session |
| POST | /api/messages/sendText | Send text message |
| POST | /api/messages/sendImage | Send image |
| POST | /api/messages/sendFile | Send file |
| POST | /api/messages/sendAudio | Send audio |
| POST | /api/messages/sendLocation | Send location |
| POST | /api/messages/sendVCard | Send contact card |
| POST | /api/messages/sendButtons | Send interactive buttons |
| POST | /api/messages/sendList | Send list message |
| POST | /api/messages/sendPoll | Send poll |
| POST | /api/messages/forward | Forward messages |
| POST | /api/messages/react | React to message |
| DELETE | /api/messages/delete | Delete message |
| GET | /api/messages/{messageId} | Get message by ID |
| GET | /api/messages/chat/{chatId} | Get chat messages |
| GET | /api/messages/starred | Get starred messages |
| PUT | /api/messages/sendSeen?chatId=... | Mark chat as seen |
| GET | /api/chats | Get all chats |
| GET | /api/chats/ids | Get all chat IDs |
| GET | /api/chats/{chatId} | Get single chat |
| PUT | /api/chats/archive | Archive chat |
| PUT | /api/chats/unarchive | Unarchive chat |
| PUT | /api/chats/pin | Pin chat |
| PUT | /api/chats/unpin | Unpin chat |
| PUT | /api/chats/mute | Mute chat |
| PUT | /api/chats/unmute | Unmute chat |
| PUT | /api/chats/read/{chatId} | Mark as read |
| PUT | /api/chats/unread/{chatId} | Mark as unread |
| GET | /api/chats/online/{chatId} | Check if online |
| DELETE | /api/chats/{chatId} | Delete chat |
| GET | /api/groups | Get all groups |
| GET | /api/groups/{groupId} | Get group info |
| GET | /api/groups/{groupId}/members | Get group members |
| GET | /api/groups/{groupId}/admins | Get group admins |
| GET | /api/groups/{groupId}/invite-link | Get invite link |
| POST | /api/groups | Create group |
| POST | /api/groups/join | Join group via link |
| PUT | /api/groups/title | Set group title |
| PUT | /api/groups/description | Set group description |
| PUT | /api/groups/add-participant | Add participant |
| PUT | /api/groups/remove-participant | Remove participant |
| PUT | /api/groups/promote | Promote to admin |
| PUT | /api/groups/demote | Demote from admin |
| PUT | /api/groups/leave/{groupId} | Leave group |
Labels
| GET | /api/labels | Get all labels |
| PUT | /api/labels/add | Add label to chat |
| PUT | /api/labels/remove | Remove label from chat |
Status
| GET | /api/status | Get stories |
| POST | /api/status/text | Post text status |
| DELETE | /api/status/{statusId} | Delete status |
Communities
| GET | /api/communities | Get all communities |
| GET | /api/communities/{id} | Get community info |
Business
| GET | /api/business/profile | Get business profile |
| GET | /api/business/products | Get products |