---
title: "Get all groups in tree list format"
method: GET
path: "/groups/tree/"
tags: ["Groups"]
---

# Get all groups in tree list format

`GET /groups/tree/`

## Response `200`

Successful response

- object
  - `code` integer — Can be 1 for success, otherwise 0 for error
  - `message` string
  - `values` object[]
    - `id_group` integer
    - `name` string
    - `parent_id` integer
    - `employees` integer
    - `groups` object[]

---

[API](https://skmtc.net/gupy/apis/gupy-public-api.md) · [All operations](https://skmtc.net/gupy/apis/gupy-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gupy/gupy-public-api/versions/3f26defa2a42/schema)
