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

# Get Document Chunk

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

Gets a document chunk by its document and chunk ID.

## Path parameters

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

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

## Response `200`

Successful Response

- DocumentChunkDetail
  - `id` string, uuid, required
  - `index` integer
  - `text` string, required
  - `metadata` ChunkMetadata
  - `links` object, required
  - `modality_data` union — Additional data specific to the modality of the chunk's source file, such as word level timestamps for chunks extracted from audio files.
    - AudioModalityData
      - `type` 'audio'
      - `word_timestamps` WordTimestamp[]
        - `start_time` number, required
        - `end_time` number, required
        - `word` string, required
        - `probability` number, required
    - VideoModalityData
      - `type` 'video'
      - `word_timestamps` WordTimestamp[]
        - `start_time` number, required
        - `end_time` number, required
        - `word` string, required
        - `probability` number, required

## Other responses

- `401` — Unauthorized
- `402` — Payment Required
- `404` — Not Found
- `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)
