Communities
Link groups
Link existing groups to a community as subgroups
POST
Link groups
Auth:
Envelope:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: no
Description
Links one or more existing groups to a community. Each link has an internal 1s delay to avoid throttling from the WhatsApp server. Individual failures do not abort the operation, they go to thefailed array.
Examples
Link 2 groups
Bulk-attaches 2 existing groups to the community120363406289005073@g.us in a single call. The service applies an internal 1s delay between links to avoid throttling.
Link 1 group
Links a single group to the community. ThegroupJid array accepts 1 or more items, useful when you want to add subgroups one by one.
Success response
Returns the count inmessage (format "Linked N of M groups to community"), the linked array with the JIDs successfully linked, and failed with the ones that were not processed (invalid JID, group already linked to another community, or bot lacking permission). success is true when at least one group was linked.
200 OK
Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.application/jsonRequest body
Community
@g.us JID.Array of
@g.us JIDs of the groups to link. At least 1 item.Notes
- A group already linked to another community lands in
failed[], unlink it first via/unlink. - Limit of 50 subgroups per community. Extras fail silently.
- The Announcements group already belongs to the community since creation and cannot be linked.
- The bot must be admin of both the community and the group being linked.
Errors
| HTTP | Message |
|---|---|
| 400 | community jid is required |
| 400 | group jid is required |
| 400 | Instance is not connected to WhatsApp |
| 500 | error parse community jid: <reason> |
Next
Unlink groups
Remove groups from the community.
List subgroups
Confirm the linked subgroups.