Skip to content

Get Knowledge Base Graph

GET /knowledge-graph/base

One base as a whole: every item it holds and the relations among them.

The neighbourhood route walks outward from a fact; this one answers the question a console asks of a base — what does it know, and how does it hang together. They cannot be the same route: an item nothing has related to yet is unreachable from every root, and those are precisely the ones a base’s map has to show, because “nothing is connected yet” is the state the maintenance pass exists to change.

total_items and total_edges are the base’s real counts; the arrays are what fits in a drawing. A client renders both, or it draws a slice as if it were the whole thing.

NameInTypeNotes
kb_idquerystring (uuid)requiredthe base to draw whole
edge_kindsquerypart_of | supports | contradicts | derived_from | supersedes | relates_to | answers | shares_topic[] | nulloptional—
statusesqueryproposed | confirmed | rejected[] | nulloptionaldefault: confirmed and proposed; rejected is a tombstone
viewer_agent_idquerystring (uuid) | nulloptional—
StatusDescriptionBody
200Successful ResponseKnowledgeBaseGraphView
422Validation ErrorHTTPValidationError
Terminal window
curl -X GET https://your-deployment.example.com/knowledge-graph/base \
-H "Authorization: Bearer $COBRE_TOKEN"
FieldTypeNotes
kb_idstring (uuid)required—
nodesKnowledgeGraphNode[]optional—
edgesKnowledgeGraphEdge[]optional—
total_itemsintegeroptionalDefault 0.
total_edgesintegeroptionalDefault 0.
truncated_at_node_limitbooleanoptionalDefault false.