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.
Authorizations
API Key or JWT User Token. If using an API Key, set the X-As-User header to act as a specific user. A JWT User Token is always scoped to a specific user.
Body
Request body for POST /context-documents/tree.
Integration sources to include (e.g., ['gmail', 'slack']). Defaults to all.
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.
Generate docs for this workstream only (skip auto-detection).