Context Documents
Generate a context document
Generate an LLM-synthesized context document from the app's synced data.
This endpoint is async — it creates a ContextDocument record with status PROCESSING, emits an Inngest event, and returns immediately. The actual synthesis (which can take 1-15 minutes depending on data volume) happens in the background via the generate_context_document Inngest function.
The pipeline automatically chooses single-pass or multi-pass mode based on the total number of resources. See tasks/context_documents.py for the full pipeline architecture.
post/context-documents/generate
Request body
Response
Successful Response