Document Tree
Endpoints
Document Tree
Retrieve the document tree structure with nested children up to a given depth.
GET
Document Tree
Documentation Index
Fetch the complete documentation index at: https://developer.copera.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Retrieves the hierarchical tree structure of documents in the workspace. Documents are returned as nested nodes with their children, up to a configurable depth.Query Parameters
parentId(optional): Start the tree from this document ID. Omit to get root-level documents.depth(optional): Maximum nesting depth, 1-10. Defaults to 3.
Response
Returns a tree structure with:root: Array of top-level tree nodes, each with nestedchildrentotalDocs: Total number of documents in the responsetruncated: Whether the result was truncated (max 500 docs)nextParentIds: When truncated, IDs of leaf documents that have more children — use these asparentIdto continue fetching
Authorizations
Bearer token
Query Parameters
Start tree from this document. Omit for root-level documents.
Pattern:
^[0-9a-fA-F]{24}$Max nesting depth (1-10). Defaults to 3.
Required range:
1 <= x <= 10