---
title: "Recursive Chunker"
method: POST
path: "/v1/chunk/recursive"
---

# Recursive Chunker

`POST /v1/chunk/recursive`

Recursively chunks documents into smaller chunks. It is a good choice for documents that are long but well structured.

## Response `200`

Successful Response: A list of `RecursiveChunk` objects.

- RecursiveChunkSchema[] — A list containing `RecursiveChunk` objects, each detailing a segment of the original text and its level in the recursive tree.
  - `text` string — The actual text content of the chunk.
  - `start_index` integer — The starting character index of the chunk within the original input text.
  - `end_index` integer — The ending character index (exclusive) of the chunk within the original input text.
  - `token_count` integer — The number of tokens in this specific chunk, according to the tokenizer used.
  - `level` integer — The level of this chunk in the recursive splitting process (starts from 0).

## Changes

- **2025-04-27** `bc64e1775952` — 1 info
  - endpoint added
- **2025-04-27** `5c8e44804806` — 1 breaking
  - api removed without deprecation
- **2025-04-27** `1762a3ecb81b` — 1 info
  - the `min_characters_per_chunk` request property default value changed from `1` to `12`
- **2025-04-27** `7e3cb743a9ed` — 1 warning
  - removed the request property `text`
- **2025-04-22** `b5fe83cf70c6` — 1 breaking, 1 info
  - removed the media type `application/json` from the request body
  - added the media type `multipart/form-data` to the request body

[Full history](https://skmtc.dev/feyninc/apis/chonkie-api/changes/v1/chunk/recursive/post.md)

---

[API](https://skmtc.dev/feyninc/apis/chonkie-api.md) · [All operations](https://skmtc.dev/feyninc/apis/chonkie-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/feyninc/chonkie-api/revisions/8a6665f478db/schema)
