- Traverse or display the folder/document tree
- Retrieve the full ancestry (breadcrumb) of any node
- Fetch all chunks under a subtree for indexing or bulk operations
- Apply or read tags at a folder or document level
The
GET /v1/path-parts endpoint returns FOLDER type path parts only. To list folder contents including documents with enriched metadata, use GET /v1/folders/{folder_id}/contents instead.GET /v1/path-parts
List path parts (folders) in the hierarchy, optionally filtered by parent and traversal depth.Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
parent_path_id | string (UUID) | — | List children of this path part. Omit to start from the root. |
max_depth | integer | 1 | How many levels deep to traverse. 1 returns direct children only. |
sort_order | string | LOGICAL | Ordering strategy. See PathOrder. |
limit | integer | 20 | Items per page (1–100). |
offset | integer | 0 | Items to skip. |
PathPartResponse objects.
GET /v1/path-parts/
Get a single path part by ID. The response includes any tags directly attached to this path part.GET /v1/path-parts//ancestry
Get the full ancestry chain from the root down to (and including) the target path part. Use this to build breadcrumb navigation.AncestryResponse with an ancestors array ordered root-to-leaf.
GET /v1/path-parts//subtree_chunks
Retrieve all descendant chunks under a path part. Chunks are returned grouped by their sharedpath_part_ids and tag_ids — useful for batching downstream operations such as vector store updates.
SubtreeChunksResponse.
GET /v1/path-parts//tags
Get tags associated with a path part.| Parameter | Type | Default | Description |
|---|---|---|---|
include_inherited | boolean | false | When true, walks the ancestor chain and returns a deduplicated union of all tags from all ancestors (including this path part). When false, returns only directly-attached tags. |
PathPartTagsResponse:
POST /v1/path-parts//tags
Bulk add tags to a path part. Idempotent — tags already applied are silently skipped. Returns400 if any tag_id does not exist. Requires write permission on the path part.
Array of tag UUIDs to apply. Maximum 10 per request.
DELETE /v1/path-parts//tags
Bulk remove tags from a path part. Tags not currently applied are silently skipped.Array of tag UUIDs to remove. Maximum 10 per request.
PathPartResponse
UUID of this path part.
Display name of this item (folder name, document name, chunk sequence number, etc.).
UUID of the parent path part, or
null for the root.UUID of the underlying domain object (e.g. the
folder_id, document_id).Full slash-delimited path from root to this node (e.g.
/shared/policies/refunds).true for path parts created and managed by the platform (e.g. root folders).Tags directly attached to this path part, if resolved in the response.
Whether the authenticated user has read access to this path part.
Whether the authenticated user has write access to this path part.
ISO 8601 creation timestamp.
ISO 8601 last-updated timestamp.
PartType
Every node in the hierarchy has apart_type identifying what it represents.
| Value | Description |
|---|---|
FOLDER | A folder that can contain documents and other folders. |
DOCUMENT | A document node. |
DOCUMENT_VERSION | A specific version of a document. |
SECTION | A section grouping within a document version. |
CHUNK | A single content chunk (the leaf of the hierarchy). |
THREAD | An AI conversation thread. |
THREAD_MESSAGE | A single message within a thread. |
WORKFLOW_DEFINITION | A saved workflow definition. |
WORKFLOW_RUN | A single workflow execution. |
PathOrder
Controls the ordering of results fromGET /v1/path-parts.
| Value | Description |
|---|---|
LOGICAL | Default. Ordered using the prev_sibling_path_part_id / next_sibling_path_part_id linked list, preserving the user-defined drag-and-drop order within each depth level. |
NAME | Alphabetical order by path_part.name. |
UPDATED_AT | Most recently updated first. |
CREATED_AT | Oldest created first. |