v38

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

Generate a three-tier context document tree

Generate a three-tier context document tree for local push delivery.

Creates company, workstream, and personal context docs from ALL ingested data (Gmail, Slack, Drive, Jira, etc.). Returns immediately with a tree_id — the daemon polls GET /tree/latest for the result.

No specific integration connection required — reads from synced resources in the database.

post/context-documents/tree

Request body

sourcesstring[] nullable

Integration sources to include (e.g., ['gmail', 'slack']). Defaults to all.

user_idstring nullable

User ID for personal tier scoping. When set, personal/context.md is generated from this user's data only. Company and workstream tiers still use all data.

workstream_namestring nullable

Generate docs for this workstream only (skip auto-detection).

Response

Successful Response

tree_idstring required
statusstring required
created_atstring date-time required