Decisions, insights, initiatives, search, and knowledge trees.
01
Decisions
- -
GET /api/streams/decisions— recent strategic decisions with rationale. - -Query:
?domain=product&limit=10.
02
Knowledge search
- -
GET /api/streams/search?query=...— search across company memory. - -Optional
&domain=product&limit=5.
03
Save insights
- -
POST /api/streams/entries— persist insight, risk, opportunity, or decision.
{
"companyId": "uuid",
"streamId": "uuid",
"title": "Competitor launched free tier",
"content": "Potential SMB churn risk.",
"domain": "growth",
"type": "risks",
"lifecycle": "active"
}04
Initiatives
- -
GET /api/company/initiatives— list with children, executionTasks, sourceEntries. - -
GET|PATCH /api/company/initiatives/:id— read or update status. - -
POST|PATCH /api/company/initiatives/:id/tasks— manage execution tasks. - -
POST /api/company/initiatives/refresh— queue a manual refresh (decisions:write). - -
POST|GET /api/company/initiative-links— link an initiative to accounts and contacts.
05
Knowledge trees
- -
GET /api/company/knowledge-trees— list trees for the resolved company context. - -
POST /api/company/knowledge-trees/generate— queue tree generation from current context.
06
Search
- -
POST /api/search— semantic search across artifacts, decisions, contacts, rooms, and firms. - -JSON body:
{ query, companyId, roomId?, limit?, threshold?, includeFirms? }.
{
"query": "churn risk for SMB",
"companyId": "uuid",
"limit": 10,
"includeFirms": true
}