---
title: "List groups (v2)"
method: GET
path: "/v2/groups/"
tags: ["groups"]
---

# List groups (v2)

`GET /v2/groups/`

List all of the authenticated user's groups. Returns the canonical list envelope: `{ data: { groups: [...] } }`. Supports `?orderBy[name]=asc|desc` and `?orderBy[number_of_contacts]=asc|desc`, plus `?where[has_parent]=true` / `?where[has_subgroups]=true` for sidebar tree navigation.

## Query parameters

- `orderBy` object
  - `name` unknown
  - `number_of_contacts` unknown
- `where` object
  - `has_subgroups` boolean
  - `has_parent` boolean
  - `has_name` string
  - `not_in` string[]
- `include` object
  - `parent_group` boolean
  - `sub_groups` boolean
  - `sub_groups_name_order` unknown
  - `contacts_count` boolean
  - `sub_groups_count` boolean
  - `is_favorite` boolean
- `select` object
  - `parent_group` boolean
  - `sub_groups` boolean
  - `sub_groups_name_order` unknown
  - `contacts_count` boolean
  - `sub_groups_count` boolean
  - `is_favorite` boolean

## Response `200`

Successful response

- object
  - `data` object, required
    - `groups` Schema0[], required — unresolved $ref
    - `pagination` object
      - `nextCursor` string, nullable
      - `count` integer

## Other responses

- `400` — Request body failed validation.
- `401` — Missing or invalid API key.
- `403` — Valid key, insufficient permission.
- `404` — Resource does not exist.
- `409` — Request body failed validation.
- `429` — Rate limit exceeded.
- `500` — Unexpected server error.

---

[API](https://skmtc.net/getdex/apis/dex-public-api.md) · [All operations](https://skmtc.net/getdex/apis/dex-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getdex/dex-public-api/revisions/9d0dd2de771c/schema)
