---
title: "Get Groups for Chunks"
method: POST
path: "/api/chunk_group/chunks"
tags: ["Chunk Group"]
---

# Get Groups for Chunks

`POST /api/chunk_group/chunks`

Route to get the groups that a chunk is in.

## Headers

- `TR-Dataset` string, uuid, required

## Request body

- GetGroupsForChunksReqPayload
  - `chunk_ids` string[], nullable
  - `chunk_tracking_ids` string[], nullable

## Response `200`

JSON body representing the groups that the chunk is in

- GroupsForChunk[]
  - `chunk_uuid` string, uuid, required
  - `slim_groups` ChunkGroupAndFileId[], required
    - `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

## Other responses

- `400` — Service error relating to getting the groups that the chunk is in

---

[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/revisions/84583e7c9fc1/schema)
