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

# Batch Get Chunks

`POST /batch/chunks`

## Request

- Base URL: `https://api.morphik.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.morphik.ai/batch/chunks`
- Auth: none declared

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 was generalized from `string` to no type
- **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

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

---

[API](https://skmtc.dev/morphik-org/apis/morphik-api.md) - [All operations](https://skmtc.dev/morphik-org/apis/morphik-api/llms.txt) - [OpenAPI document](https://skmtc.dev/morphik-org/apis/morphik-api/revisions/45d77e08d406?raw)
