latestOpenAPI 3.0.3MIT OR Apache-2.02026-07-17203670.3 KB

f8665c1a5239

documents

Get document as tree structure

Returns the complete hierarchical tree structure with nested children. Useful for visualizing or navigating the document structure.

get/v1/documents/{id}/tree

Path parameters

idstring required
Example:doc_abc123

Document ID

Response

Document tree

idstring
titlestring
summarystring

LLM-generated summary

depthinteger

Depth in the tree (0 = root)

is_leafboolean

Example response

{
  "id": "node_xyz789",
  "title": "Chapter 3: Neural Networks",
  "summary": "This chapter covers neural network fundamentals...",
  "depth": 1
}