---
title: "Deprecated in favor of"
method: GET
path: "/api/{session}/all-groups"
tags: ["Group"]
deprecated: true
---

# Deprecated in favor of

`GET /api/{session}/all-groups`

> **Deprecated.**

## Path parameters

- `session` string, required

## Query parameters

- `groupId` string
- `wid` string

## Request body

- object
  - `$groupId` string
  - `$path` string

## Response `200`

Group information retrieved successfully

- object
  - `status` string
  - `response` object
    - `id` string
    - `name` string
    - `description` string, nullable
    - `subject` string
    - `subjectUpdatedAt` string, nullable
    - `subjectUpdatedBy` string, nullable
    - `descriptionUpdatedAt` string, nullable
    - `descriptionUpdatedBy` string, nullable
    - `createdAt` string, nullable
    - `lastActivityAt` string, nullable
    - `participants` object[]
      - `id` string
      - `isAdmin` boolean

## Other responses

- `400` — Bad Request
- `500` — Internal error retrieving group info

## Changes

- **2025-10-01** `b44a7a8a3d1e` — 2 info
  - added the media type `application/json` for the response with the status `200`
  - added the media type `application/json` for the response with the status `500`
- **2023-11-15** `70337a109938` — 1 info
  - added the new optional `query` request parameter `wid`
- **2023-06-04** `a9f5cf036471` — 1 breaking, 3 info
  - added required request body
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`
  - added the success response with the status `200`
- **2023-06-02** `9dc94d4ca198` — 1 breaking, 3 info
  - removed the success response with the status `200`
  - endpoint deprecated
  - added the new optional `query` request parameter `groupId`
  - removed the non-success response with the status `500`
- **2023-05-31** `21a80b8287f1` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest/changes/api/:session/all-groups/get.md)

---

[API](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest.md) · [All operations](https://skmtc.dev/wppconnect-team/apis/wppconnect-api-rest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wppconnect-team/wppconnect-api-rest/revisions/b44a7a8a3d1e/schema)
