---
title: "Get Document Chunk Content"
method: GET
path: "/documents/{document_id}/chunks/{chunk_id}/content"
tags: ["documents"]
---

# Get Document Chunk Content

`GET /documents/{document_id}/chunks/{chunk_id}/content`

Returns the content of a document chunk in the requested format. Can be used to stream media of the content for audio/video documents.

## Path parameters

- `document_id` string, uuid, required — The id of the document.
- `chunk_id` string, uuid, required — The ID of the chunk.

## Query parameters

- `media_type` 'text/plain' | 'audio/mpeg' | 'video/mp4' | 'image/webp' | 'image/heic' | 'image/bmp' | 'image/png' | 'image/jpeg' | 'image/tiff', nullable — The desired media type of the content to return described as a mime type. An error will be returned if the requested media type is not supported for the chunk's document type.
- `download` boolean — Whether to return the content as a file download or a raw stream. If set to `true`, the content will be returned as a named file for download.

## Headers

- `partition` string, nullable — An optional partition to scope the request to. If omitted, accounts created after 1/9/2025 will have the request scoped to the default partition, while older accounts will have the request scoped to all partitions. Older accounts may opt in to strict partition scoping by contacting support@ragie.ai. Older accounts using the partitions feature are strongly recommended to scope the request to a partition.
- `range` string, nullable

## Response `200`

Returns the source content of the document chunk.

- unknown

## Other responses

- `401` — Unauthorized
- `402` — Payment Required
- `422` — Validation Error
- `429` — Too Many Requests
- `500` — Internal Server Error

---

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