v38

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-1793196344.2 KB
Context Documents

Get tree generation progress

Return the generation progress for a single tree.

Live phase/counter data comes from the Temporal workflow query. Terminal trees and trees whose workflow is no longer queryable (e.g. completed workflows that have aged out, cron-driven refreshes) return just the DB-level status with no phase data.

get/context-documents/tree/{tree_id}/progress

Path parameters

tree_idstring required

Response

Successful Response

tree_idstring required
statusstring required
phasestring nullable

Workflow phase. Values: discover, search, select, synthesize, finalize, personal, done. Null for terminal trees and trees whose workflow is no longer queryable.

completed_docsinteger nullable
total_docsinteger nullable