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
Request
- Base URLhttps://your-reasondb-host
- Auth
- API key in header X-Api-Key
- or none
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Example:doc_abc123
Document ID
Response
Document tree
Example response
{
"id": "node_xyz789",
"title": "Chapter 3: Neural Networks",
"summary": "This chapter covers neural network fundamentals...",
"depth": 1
}Changes
No recorded changes to this operation across all 7 revisions of this API.