v1

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

Get all nodes for a document

Returns a flat list of all nodes in the document tree.

get/v1/documents/{id}/nodes

Path parameters

idstring required
Example:doc_abc123

Document ID

Response

List of nodes

idstring
titlestring
summarystring

LLM-generated summary of this node

depthinteger

Depth in the tree (0 = root)

is_leafboolean

Whether this is a leaf node (no children)

children_countinteger

Number of direct children

Example response

[
  {
    "id": "node_xyz789",
    "title": "Chapter 3: Neural Networks",
    "summary": "This chapter covers the fundamentals of neural networks...",
    "depth": 1,
    "children_count": 5
  }
]