Communities
List subgroups
Returns groups linked to a community, including the Announcements group
GET
List subgroups
Auth:
Envelope:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: yes
Description
Lists the subgroups of a community. The Announcements group is identified by the flagisDefaultSubGroup: true. Unlike the other endpoints, this route requires a JID in ?communityJid= (it does not accept a code / link).
Examples
List subgroups
Queries the subgroups of the community120363406289005073@g.us by passing the full JID (with the @g.us suffix) in the query string.
Without the @g.us suffix
Same query, but passing only the numeric ID incommunityJid. The service automatically appends @g.us before resolving the community.
Success response
ReturnscommunityJid (already normalized with the @g.us suffix) and the subgroups array with each linked group the bot participates in. Each item carries jid, name, and the flag isDefaultSubGroup that identifies the community’s Announcements group. The message carries the count ("N subgroup(s) found") and the array comes empty when no subgroup is found.
200 OK
Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.Query
Community
@g.us JID. If you omit the suffix, the service automatically appends @g.us.Notes
- The listing only returns subgroups the bot is in, if the bot is in the parent only but not in subgroup X, X does not appear in the list.
- Propagation of new links can take 1-3s, a
GETright afterPOST /linkmay temporarily return the list without the freshly linked group. - The Announcements group always appears with
isDefaultSubGroup: true. Filter on the client if you need to exclude it from the listing.
Errors
| HTTP | Message |
|---|---|
| 400 | communityJid query parameter is required |
| 400 | invalid community JID: <reason> |
| 400 | Instance is not connected to WhatsApp |
| 500 | failed to get groups: <reason> |
Next
Link groups
Add new subgroups.
Unlink groups
Remove subgroups from the community.