---
title: "Get Indented List of Groups"
method: GET
path: "/v1/customers/groups/indented"
tags: ["Customer Groups"]
---

# Get Indented List of Groups

`GET /v1/customers/groups/indented`

## Request

- Base URL: `` (relative, and it does not resolve against the document’s source URL)
- URL: `/v1/customers/groups/indented`
- Auth: one of:
  - API key in header `sessionKey`
  - API key in header `clientCode`
  - API key in header `jwt`
- TypeScript: <https://skmtc.dev/erply/apis/crm-api/docs/v1/customers/groups/indented/get.ts> (a function with typed inputs; its response is checked against the schema)

The result is a indented list of group ids and names sorted by orders and prefixed by the dash (―) sign if is a parent

## Response `200`

OK

- CustomersApiInternalServicesSharedIndentationResult[]
  - `id` integer: ID of the element
  - `name` string: The name is the name in the client's default language. Will be prefixed n times if the element is a child of another element.

## Other responses

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

---

[API](https://skmtc.dev/erply/apis/crm-api.md) - [All operations](https://skmtc.dev/erply/apis/crm-api/llms.txt) - [OpenAPI document](https://skmtc.dev/erply/apis/crm-api/revisions/36dd4cc370b2?raw)
