Generate context docs folder structure in Google Drive
Generate context documents and write them to Google Drive.
Creates the full folder structure (context-docs/, company/, workstreams/) with CLAUDE.md files and synthesized documents. Requires a Google Drive connection with write access.
This is a synchronous endpoint — it runs all prompts in parallel and creates the Drive structure before returning. Expect 1-3 minutes.
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/drive-export.
Generate docs for this workstream only (skip auto-detection). Used for the demo.