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

# Count groups (v2)

`GET /v2/groups/count`

Return the count of the authenticated user's groups. Cheap path for a sidebar badge / quota check without loading the full list.

## Query parameters

- `where` object
  - `has_subgroups` boolean
  - `has_parent` boolean
  - `has_name` string
  - `not_in` string[]

## Response `200`

Successful response

- object
  - `data` object, required
    - `count` integer, required

## 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/versions/6f01cd52ac12/schema)
