---
title: "Get Document Contents"
method: GET
path: "/datastores/{datastore_id}/contents"
tags: ["/contents"]
---

# Get Document Contents

`GET /datastores/{datastore_id}/contents`

## Path parameters

- `datastore_id` string, uuid, required — Datastore ID of the datastore from which to retrieve the document

## Query parameters

- `document_id` string, uuid — Document ID of the document to retrieve details for
- `search` string — The query to search keywords for
- `offset` integer — The offset to start retrieving content ids
- `limit` integer — The number of content ids to be returned

## Response `200`

Successful Response

- ListContentResponse
  - `data` union[], required — List of content entries
    - union — Content entry type
      - DocumentContentEntry
        - `content_id` string, uuid, required — ID of the content
        - `content_type` 'unstructured'
        - `page_number` integer, required — Page number of the content
      - StructuredContentEntry — Tabular content entry used in query retrieval.
        - `content_id` string, required — ID of the content
        - `content_type` 'structured'
        - `table_name` string, required — Name of the table
        - `schema` string, nullable — Name of the schema of the table
  - `has_more` boolean, required — Whether there are more content entries to retrieve

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-28** `c8152db45500` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/contextualai/apis/endpoints/changes/datastores/:datastore_id/contents/get.md)

---

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