Skip to main content
POST
Link groups
Auth: TokenAccount or TokenInstanceRate-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 the failed array.

Examples

Bulk-attaches 2 existing groups to the community 120363406289005073@g.us in a single call. The service applies an internal 1s delay between links to avoid throttling.
Links a single group to the community. The groupJid array accepts 1 or more items, useful when you want to add subgroups one by one.

Success response

Returns the count in message (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
Partial success and total failure both return HTTP 200. Always check success + failed[] on the client to detect per-group errors.

Path parameters

string
required
Instance name.

Headers

string
required
TokenAccount or TokenInstance.
string
required
application/json

Request body

string
required
Community @g.us JID.
string[]
required
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

Envelope:

Next

Unlink groups

Remove groups from the community.

List subgroups

Confirm the linked subgroups.