Generate a daily company digest
Generate a date-windowed “what the company did today” digest.
Reuses TreeGenerationWorkflow in digest mode: a single company-wide doc, retrieval bounded to the window, recency disabled. Returns immediately with a tree_id (kind=DIGEST); poll GET /tree//progress or fetch via /tree/by-id/. See specs/flows/context-tree-daily-digest.md.
Gated per-app by the context-tree-daily-digest PostHog flag.
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/digest.
Digest cadence: 'daily' or 'weekly'. Sets the default window when none is given.
Inclusive lower bound of the digest window. Defaults to midnight UTC today (paired with window_end=now) when omitted. Both bounds must be supplied together.
Exclusive upper bound of the digest window. Defaults to now.
Integration sources to include (e.g., ['slack', 'github']). Defaults to all.