Skip to main content
GET
Get knowledge graph
This endpoint requires the record.read scope on your API key.

Overview

Returns the full knowledge graph for your workspace. The graph combines CRM relationship data with AI-extracted knowledge from ingested context, providing a unified view of entities and their connections.

Node Types

TypeID FormatResponse FieldDescription
CRM entity"12345"nodesResolved entities (people, companies, custom objects)
Ghost"ghost:123"nodesEntities mentioned in context but not yet matched to a CRM record
Entity insight"ei:123"insight_nodesAI-extracted insight scoped to a specific entity
Knowledge insight"ki:123"insight_nodesWorkspace-level AI-extracted knowledge

Edge Types

The context_edges array contains edges from multiple sources, distinguished by the edge_type field:
Edge TypeDescriptionHas Confidence
contextRelationships from ingested text (e.g., “involved_in”)No
tripletAI-extracted subject-predicate-object relationships (e.g., “works_with”, “reports_to”)Yes
insightLinks connecting insight nodes to entity nodesNo
insight_linkSemantic relationships between insight nodes (related_to or contradicts)Yes
insight_link edges represent semantic relationships discovered between insights. They connect two insight nodes (entity insights ei:* or knowledge insights ki:*) and always include a confidence score (0-1) representing semantic similarity. Labels:
  • related_to — The two insights are semantically related
  • contradicts — The two insights contain contradictory information

Edge Priority

When both a context edge and a triplet edge exist between the same pair of nodes, generic context labels (involved_in, context) are suppressed in favor of the richer triplet edge. Non-generic context labels are kept alongside triplet edges.

Interactive Visualization

Request HTML format to receive an interactive graph visualization:

Example

Authorizations

Authorization
string
header
required

API key for authentication (format: "Bearer YOUR_API_KEY")

Query Parameters

limit
integer
default:1000

Maximum number of entity nodes to return

Required range: 1 <= x <= 5000
format
enum<string>

Response format. Use html to receive an interactive graph visualization instead of JSON.

Available options:
json,
html

Response

Knowledge graph data

Complete knowledge graph for the workspace

nodes
object[]

CRM entity nodes (people, companies, custom objects) and ghost nodes (entities mentioned in context but not yet resolved to a CRM record)

edges
object[]

CRM relationship edges between entity nodes (e.g., person works_at company)

relationship_definitions
object[]

Definitions of relationship types in the workspace

context_edges
object[]

Edges derived from ingested context, AI-extracted triplets, insight-entity links, and insight-to-insight semantic relationships. Each edge has an edge_type indicating its source.

insight_nodes
object[]

Insight nodes representing AI-extracted knowledge (entity insights and workspace-level knowledge insights)

insights
object

Per-entity insight summaries, keyed by entity ID

total_nodes
integer

Total number of entity nodes in the workspace (may exceed the returned count due to the limit parameter)

total_edges
integer

Total number of CRM relationship edges in the workspace

total_context_edges
integer

Total number of context edges returned (includes all edge types)

Last modified on June 14, 2026