---
title: "Batch Get Chunks"
method: POST
path: "/batch/chunks"
---

# Batch Get Chunks

`POST /batch/chunks`

Retrieve specific chunks by their document ID and chunk number in a single batch operation.

## Headers

- `authorization` string, nullable

## Request body

- BatchChunksRequest — Request model for batch chunk retrieval.
  - `sources` ChunkSource[] — List of chunk sources to retrieve
    - `document_id` string, required
    - `chunk_number` integer, required
    - `score` number, nullable
  - `folder_name` union — Optional folder scope. Accepts a folder PATH (e.g., '/Company/Reports') or list of paths.
    - string
    - string[]
  - `end_user_id` string, nullable — Optional end-user scope for the operation
  - `use_colpali` boolean, nullable — Whether to use ColPali embeddings for retrieval
  - `output_format` 'base64' | 'url' | 'text' — Output format for image chunks in retrieval results.

## Response `200`

Successful Response

- ChunkResult[]
  - `content` string, required
  - `score` number, required
  - `document_id` string, required
  - `chunk_number` integer, required
  - `metadata` object, required
  - `content_type` string, required
  - `filename` string, nullable
  - `download_url` string, nullable
  - `is_padding` boolean — Whether this chunk was added as padding

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/morphik-org/apis/fastapi.md) · [All operations](https://skmtc.net/morphik-org/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morphik-org/fastapi/versions/2d9291c3821d/schema)
