Skip to main content
GET
/
v1
/
document_versions
/
{version_id}
/
contents
Get Document Version Contents Handler
curl --request GET \
  --url http://localhost:8000/v1/document_versions/{version_id}/contents
{
  "items": [
    {
      "part_type": "SECTION",
      "path_part_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "parent_path_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "metadata_obj_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "depth": 123,
      "materialized_path": "<string>",
      "system_managed": true,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "page_number": 123
    }
  ],
  "total": 1,
  "limit": 2,
  "offset": 1
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string | null

Path Parameters

version_id
string<uuid>
required

DocumentVersion ID

Query Parameters

section_id
string<uuid> | null

Optional section ID to scope traversal to a subtree

content_type
enum<string> | null

Filter by content type: SECTION or CHUNK. Omit to return both types.

Available options:
SECTION,
CHUNK
limit
integer
default:20

Number of items per page

Required range: 1 <= x <= 100
offset
integer
default:0

Number of items to skip

Required range: x >= 0

Cookies

ks_uat
string | null

Response

Successful Response

items
(SectionContentItem · object | ChunkContentItem · object)[]
required

List of items

Response model for a section item in document version contents.

total
integer
required

Total number of items

Required range: x >= 0
limit
integer
required

Number of items per page

Required range: x >= 1
offset
integer
required

Number of items to skip

Required range: x >= 0