GET /api/workspaces
Hydrates the active Clerk organization with active workspaces, archived workspaces, memory history, and conversation state.
POST /api/workspaces
Creates a new organization-scoped workspace for investor, customer, or hiring use cases.
GET /api/workspaces/[workspaceId]
Returns one workspace together with its memories and latest conversation thread.
POST /api/ingest
Writes structured memory into Postgres and attempts HydraDB sync for the same organization tenant.
GET /api/brief?workspaceId=:id
Builds the workspace brief from saved memory, recent conversation, and retrieved Hydra evidence.
POST /api/ask
Answers a founder question, stores the new conversation turn, and returns evidence-backed output.