client.groups for WhatsApp group operations on an instance.
Common fields on every call:
| Field | Type | Required | Description |
|---|---|---|---|
instance_id | string | Yes | Instance ID. |
instance_token | string | Yes | Instance token. |
group_id in the payload.
client.groups.list(...)
Lists groups with pagination.
{ code, success, data.groups[] } with pagination when applicable.
client.groups.get(...)
Gets group metadata.
{ code, success, data } with group metadata (jid, name, topic, participants, etc.).
client.groups.invite_link(...)
Gets or resets the invite link.
{ code, success, data.invite_link }.
With reset:
client.groups.set_photo(...)
Changes the group photo. Accepts a public URL or base64 data URL.
{ code, success, data.details } confirming the change.
client.groups.set_name(...)
Changes the group name.
{ code, success, data.details } confirming the change.
client.groups.set_description(...)
Changes the group description.
{ code, success, data.details } confirming the change.
client.groups.set_settings(...)
Changes group settings.
{ code, success, data.details } confirming the change.
client.groups.create(...)
Creates a group with participants.
{ code, success, data } with created group fields.
client.groups.add_admin(...)
Promotes participants to admin.
{ code, success, data.details } confirming the change.
client.groups.remove_admin(...)
Removes admins from the group.
{ code, success, data.details } confirming the change.
