Skip to main content

WhatsApp Groups API

Manage and retrieve information about the WhatsApp groups your instance belongs to.

Fetch groups list

Endpoint: GET /groups

Use this endpoint to retrieve all groups where your instance is currently a participant. This is essential for obtaining the id (Group JID) required to send messages to a specific group.

Query Parameters

  • instance (string): Your unique instance identifier.
curl -X GET "https://api.communiktor.com/groups?instance=my-instance-1" \
-H "X-API-KEY: YOUR_API_KEY"

Response format

{
"success": true,
"code": 200,
"message": "2 groups found",
"data": [
{
"id": "123456789@g.us",
"subject": "Company Announcements",
"size": 42
},
{
"id": "987654321@g.us",
"subject": "Support Team",
"size": 12
}
]
}