Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

chore: update openapi & readme

Aldino Kemalb0997eda062a
diff --git a/docs/openapi.yaml b/docs/openapi.yaml
index 01fb8dca..63260219 100644
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -1,7 +1,7 @@
openapi: "3.0.0"
info:
title: WhatsApp API MultiDevice
- version: 6.10.0
+ version: 6.11.0
description: This API is used for sending whatsapp via API
servers:
- url: http://localhost:3000
@@ -1659,6 +1659,38 @@ paths:
schema:
$ref: '#/components/schemas/ErrorInternalServer'
/group/participants:
+ get:
+ operationId: getGroupParticipants
+ tags:
+ - group
+ summary: Get list of participants in a group
+ parameters:
+ - name: group_id
+ in: query
+ required: true
+ schema:
+ type: string
+ example: '[email protected]'
+ description: The group ID to fetch participants for
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GroupParticipantsResponse'
+ '400':
+ description: Bad Request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorBadRequest'
+ '500':
+ description: Internal Server Error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorInternalServer'
post:
operationId: addParticipantToGroup
tags:
@@ -1682,6 +1714,40 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorBadRequest'
+ '500':
+ description: Internal Server Error
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorInternalServer'
+ /group/participants/export:
+ get:
+ operationId: exportGroupParticipants
+ tags:
+ - group
+ summary: Export group participants as CSV
+ parameters:
+ - name: group_id
+ in: query
+ required: true
+ schema:
+ type: string
+ example: '[email protected]'
+ description: The group ID to export participants for
+ responses:
+ '200':
+ description: CSV stream containing the participants list
+ content:
+ text/csv:
+ schema:
+ type: string
+ format: binary
+ '400':
+ description: Bad Request
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorBadRequest'
'500':
description: Internal Server Error
content:
@@ -2396,6 +2462,56 @@ components:
message:
type: string
example: Participant added
+ GroupParticipantsResponse:
+ type: object
+ additionalProperties: false
+ properties:
+ code:
+ type: string
+ example: SUCCESS
+ message:
+ type: string
+ example: Success getting group participants
+ results:
+ $ref: '#/components/schemas/GroupParticipantsResult'
+ GroupParticipantsResult:
+ type: object
+ additionalProperties: false
+ properties:
+ group_id:
+ type: string
+ example: '[email protected]'
+ name:
+ type: string
+ example: My Awesome Group
+ participants:
+ type: array
+ items:
+ $ref: '#/components/schemas/GroupParticipantItem'
+ GroupParticipantItem:
+ type: object
+ additionalProperties: false
+ properties:
+ jid:
+ type: string
+ example: '[email protected]'
+ phone_number:
+ type: string
+ example: '[email protected]'
+ lid:
+ type: string
+ nullable: true
+ example: '12345@lid'
+ display_name:
+ type: string
+ nullable: true
+ example: Anonymous Member
+ is_admin:
+ type: boolean
+ example: true
+ is_super_admin:
+ type: boolean
+ example: false
SetGroupPhotoResponse:
type: object
properties:
diff --git a/readme.md b/readme.md
index 57bda155..0acc4b54 100644
--- a/readme.md
+++ b/readme.md
@@ -227,11 +227,13 @@ For AI tools that support MCP with SSE (like Cursor), add this configuration:
### Production Mode REST (docker)
Using Docker Hub:
+
```bash
docker run --detach --publish=3000:3000 --name=whatsapp --restart=always --volume=$(docker volume create --name=whatsapp):/app/storages aldinokemal2104/go-whatsapp-web-multidevice rest --autoreply="Dont't reply this message please"
```
Using GitHub Container Registry:
+
```bash
docker run --detach --publish=3000:3000 --name=whatsapp --restart=always --volume=$(docker volume create --name=whatsapp):/app/storages ghcr.io/aldinokemal/go-whatsapp-web-multidevice rest --autoreply="Dont't reply this message please"
```
@@ -396,10 +398,12 @@ You can fork or edit this source code !
| ✅ | Group Info | GET | /group/info |
| ✅ | Leave Group | POST | /group/leave |
| ✅ | Create Group | POST | /group |
+| ✅ | List Participants in Group | GET | /group/participants |
| ✅ | Add Participants in Group | POST | /group/participants |
| ✅ | Remove Participant in Group | POST | /group/participants/remove |
| ✅ | Promote Participant in Group | POST | /group/participants/promote |
| ✅ | Demote Participant in Group | POST | /group/participants/demote |
+| ✅ | Export Group Participants (CSV) | GET | /group/participants/export |
| ✅ | List Requested Participants in Group | GET | /group/participant-requests |
| ✅ | Approve Requested Participant in Group | POST | /group/participant-requests/approve |
| ✅ | Reject Requested Participant in Group | POST | /group/participant-requests/reject |