---
title: "Get Document"
method: GET
path: "/v3/collections/{collection_name}/documents/{document_id}"
tags: ["file-search"]
---

# Get Document

`GET /v3/collections/{collection_name}/documents/{document_id}`

Fetch one indexed document with its chunks and optional extracted regions.

## Path parameters

- `collection_name` string, required
- `document_id` string, required

## Query parameters

- `include_regions` boolean
- `include_metadata` boolean

## Response `200`

Get Document response.

- GetDocumentResponseV3
  - `document_id` string, required
  - `collection_name` string, required
  - `chunk_count` integer, required
  - `metadata` DocumentMetadataV3, required
    - `filename` string, nullable
    - `file_type` string, nullable
    - `file_size` integer, nullable
    - `mime_type` string, nullable
    - `uri` string, nullable
    - `summary` string, nullable
    - `tags` string[], nullable
    - `indexing_status` string, nullable
    - `created_at` string, nullable
    - `indexed_at` string, nullable
  - `chunks` DocumentChunkV3[]
    - `chunk_id` string, required
    - `document_id` string, required
    - `text` string, required
    - `location` FileSearchLocationFromV3
      - `page_start` integer, nullable
      - `page_end` integer, nullable
      - `chunk_index` integer, nullable
      - `parent_chunk_index` integer, nullable
      - `start_seconds` number, double, nullable
      - `end_seconds` number, double, nullable
      - `sheet_name` string, nullable
      - `row_start` integer, nullable
      - `row_end` integer, nullable
      - `col_start` integer, nullable
      - `col_end` integer, nullable
    - `regions` FileSearchRegionFromV3[], nullable
      - `type` string, nullable — Region category, such as `text`, `title`, `section_header`, `key_value`, `table`, `figure`, `chart`, or `image`. Regions of type `figure`, `chart`, or `image` also carry a cropped `image_url` (a visual citation).
      - `text` string, nullable
      - `page` integer, nullable
      - `bbox` object, nullable
      - `confidence` string, nullable
      - `image_url` string, nullable — Short-lived presigned URL to a cropped image of the region (a visual citation), returned for `figure`, `chart`, and `image` regions when `include.regions` is true. Null for text regions and for documents indexed before figure cropping was enabled. Fetch promptly — the link expires within minutes.
      - `description` string, nullable
    - `custom_metadata` DocumentChunkV3CustomMetadata
    - `metadata` DocumentChunkV3Metadata
    - `chunk_type` 'body' | 'table' | 'heading' | 'page_header' | 'page_footer' | 'footnote' | 'figure' — Layout role of this chunk, classified from the parser's block structure at indexing time: body, table, heading, page_header, page_footer, footnote, or figure. Null when the chunk has no label: content indexed before chunk types shipped, plain-text and media content, or regions the parser returned without block structure. Treat unknown future values as additive.
  - `warnings` string[]
  - `custom_metadata` object, nullable

## Other responses

- `401` — Missing or invalid authentication.
- `403` — Collection is inactive.
- `404` — Document or collection not found.

---

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