Skip to content

Context

POST /api/v1/context
Content-Type: application/json

Returns ranked, contextually relevant nodes for a session.

{
"focus_node_ids": ["node_id_1", "node_id_2"],
"mode": "hybrid"
}
FieldTypeRequiredDescription
focus_node_idsstring[]NoNode IDs to use as context anchors
modestringNoSearch mode: keyword, semantic, or hybrid

GET /api/v1/graph-health

Returns knowledge graph statistics:

{
"total_nodes": 156,
"validated_nodes": 120,
"total_captures": 200,
"pending_captures": 3,
"total_links": 450,
"stale_nodes": 12
}

GET /api/v1/links/suggestions?text=your+search+text
ParameterTypeDescription
textstringText to find link suggestions for (max 10,000 chars)

Returns suggested nodes that could be linked based on content similarity:

{
"suggestions": [
{
"node_id": "abc123",
"title": "Related concept",
"score": 0.85
}
]
}