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

## Changes

- **2026-01-22** `2d9291c3821d` — 2 info
  - `header` request parameter `authorization` list-of-types was widened by adding types `null`
  - for the `header` request parameter `authorization`, the type/format was generalized from `string`/`` to ``/``
- **2025-12-06** `e185c542e939` — 1 breaking, 1 info
  - removed `subschema #1` from the `output_format` request property `anyOf` list
  - added `#/components/schemas/OutputFormat` to the `output_format` request property `anyOf` list
- **2025-11-27** `4ce03d9b0f27` — 5 info
  - added the new optional request property `end_user_id`
  - added the new optional request property `folder_name`
  - added the new optional request property `output_format`
  - added the new optional request property `sources`
  - …1 more

[Change history](https://skmtc.dev/morphik-org/apis/fastapi/changes/batch/chunks/post.md)

---

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