---
title: "Fetch All Groups"
method: GET
path: "/group/fetchAllGroups/{instance}"
tags: ["Group Controller"]
---

# Fetch All Groups

`GET /group/fetchAllGroups/{instance}`

Fetch all groups

## Path parameters

- `instance` string, required

## Query parameters

- `getParticipants` boolean, required

## Response `200`

Ok

- object[] — Array of objects representing WhatsApp group details.
  - `id` string, required — The ID of the group.
  - `subject` string, required — The subject (name) of the group.
  - `subjectOwner` string, required — The ID of the user who set the subject.
  - `subjectTime` integer, required — The timestamp when the subject was set.
  - `pictureUrl` string — URL of the group's profile picture.
  - `size` integer, required — The number of participants in the group.
  - `creation` integer, required — The timestamp when the group was created.
  - `owner` string, required — The ID of the group owner.
  - `desc` string — The description of the group.
  - `descId` string — The ID of the description message.
  - `restrict` boolean, required — Indicates if the group is restricted (only admins can send messages).
  - `announce` boolean, required — Indicates if the group is an announcement group (only admins can send messages).

---

[API](https://skmtc.net/evolution-foundation/apis/evolution-api-2.md) · [All operations](https://skmtc.net/evolution-foundation/apis/evolution-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/evolution-foundation/evolution-api-2/revisions/153363ee7f38/schema)
