---
title: "Count Chunks in a Group"
method: POST
path: "/api/chunk_group/count"
tags: ["Chunk Group"]
---

# Count Chunks in a Group

`POST /api/chunk_group/count`

Route to get the number of chunks that is in a group

## Headers

- `TR-Dataset` string, uuid, required

## Request body

- GetChunkGroupCountRequest
  - `group_id` string, uuid, nullable — The Id of the group to get the count for, is not required if group_tracking_id is provided.
  - `group_tracking_id` string, nullable — The tracking id of the group to get the count for, is not required if group_id is provided.

## Response `200`

JSON body representing the group with the count

- GetChunkGroupCountResponse
  - `count` integer, required — The count of chunks in the given group.
  - `group_id` string, uuid, required — The Id of the group to get the count for.

## Other responses

- `400` — Service error relating to getting the group with the given tracking id
- `404` — Group not found

---

[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)
