---
title: "List document chunks"
method: GET
path: "/v1/knowledge-models/{knowledge_model_id}/chunks"
---

# List document chunks

`GET /v1/knowledge-models/{knowledge_model_id}/chunks`

List document chunks with filtering options. Returns raw, unprocessed text chunks from the knowledge model.

## Path parameters

- `knowledge_model_id` string, required

## Query parameters

- `document_id` string, nullable — Filter by specific document ID
- `document_type` 'base' | 'uploaded' | 'system' | 'conference' | 'translation_dict' | 'vimeo' | 'youtube' | 'attachment' | 'webcrawler'
- `content_type` 'text' | 'json' | 'table' | 'image' | 'transcript' | 'dataframe'
- `sort` 'chunk_index' | 'document_id'
- `offset` integer
- `limit` integer

## Response `200`

Successful Response

- AppApiResponsesKmapiChunkChunkListSchema
  - `results` ChunkResult[], required
    - `id` string, required — ID of the chunk
    - `document_id` string, required — ID of the document this chunk belongs to
    - `text` string, required — Full, unaltered chunk content
    - `content_type` 'text' | 'json' | 'table' | 'image' | 'transcript' | 'dataframe', required
    - `document_page` integer, required — Page number in the document
    - `chunk_index` integer, required — Index of the chunk in the document
  - `total` integer, required — Total count of available records. It can be larger than results count.

## Other responses

- `401` — User token is not present in cookies or has incorrect value.
- `421` — Various errors, see examples
- `422` — Validation Error

---

[API](https://skmtc.dev/constructor-tech/apis/constructorknowledgemodel.md) · [All operations](https://skmtc.dev/constructor-tech/apis/constructorknowledgemodel/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/constructor-tech/constructorknowledgemodel/revisions/989f1fae00de/schema)
