Groups
List Groups
Returns all groups the instance belongs to
GET
List Groups
Auth:
Envelope:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Lists every group the instance belongs to. By default, only lightweight metadata is returned (name, JID, description, creator, count). PassincludeMembers=true in the query to include the full member list, when you do, the operation timeout is extended to 60s.
Examples
List (without members)
Returns every group of the instance with lightweight metadata only (name, JID, description, creator, count). This is the default mode and the fastest for accounts with many groups.List with members
AddincludeMembers=true to include the full participant list of every group. The internal timeout is extended to 60s, useful when you need a complete snapshot in a single call.
Success response
Returns every group of the instance undergroups[], with meta.total reporting the count. Each item carries lightweight metadata (name, groupJid, description, creatorJid, memberCount); the members array is populated only when includeMembers=true. There is no pagination, every group comes in a single response.
200 OK
Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.Query
When
true, includes the full member list of each group.Notes
- The
membersarray only appears whenincludeMembers=true. - For accounts with many groups, use
includeMembers=falseand fetch members on demand viaGET /info. - There is no pagination, every group comes in a single response.
Errors
| HTTP | Message |
|---|---|
| 400 | Instance is not connected to WhatsApp |
| 404 | Instance not found |