---
title: "Get Groups for Dataset"
method: GET
path: "/api/dataset/groups/{dataset_id}/{page}"
tags: ["Chunk Group"]
---

# Get Groups for Dataset

`GET /api/dataset/groups/{dataset_id}/{page}`

Fetch the groups which belong to a dataset specified by its id.

## Path parameters

- `dataset_id` string, uuid, required
- `page` integer, nullable, required

## Query parameters

- `use_cursor` boolean, nullable
- `cursor` string, uuid, nullable

## Headers

- `TR-Dataset` string, uuid, required

## Response `200`

JSON body representing the groups created by the given dataset

- GroupData
  - `groups` ChunkGroupAndFileId[], required — The list of all the groups.
    - `created_at` string, date-time, required
    - `dataset_id` string, uuid, required
    - `description` string, required
    - `file_id` string, uuid, nullable
    - `id` string, uuid, required
    - `metadata` unknown
    - `name` string, required
    - `tag_set` string[], nullable
    - `tracking_id` string, nullable
    - `updated_at` string, date-time, required
  - `next_cursor` string, uuid, nullable — Parameter for the next cursor offset.
  - `total_pages` integer, required — Total number of pages. Pages is groups_count / 10

## Other responses

- `400` — Service error relating to getting the groups created by the given dataset

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/versions/84583e7c9fc1/schema)
