---
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`

OK

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **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
- **2022-07-21** `5384d2ef4ae9` — 1 info
  - api path removed with deprecation

[Change 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/853aaca8a2fe/schema)
