Endpoints

MethodPathDescription
POST/api/v1/graph/queryNatural language query over the graph. Body: {"question": "string"}
GET/api/v1/graph/pathShortest path between two concepts. Params: ?from=A&to=B
GET/api/v1/graph/explainExplain a concept in the graph. Params: ?concept=term
GET/api/v1/graph/similarFind semantically similar concepts. Params: ?concept=term&top_k=5
GET/api/v1/graph/reportAuto-generated Markdown report: communities, key nodes, relationship summary
GET/api/v1/graph/exportFull graph as JSON: all nodes, all edges, metadata
POST/api/v1/graph/syncRe-index the graph from the database. Returns: {"nodes_indexed", "edges_created", "communities", "duration_ms"}
GET/api/v1/graph/visualizeReturns interactive D3.js HTML visualiser page
GET/api/v1/graph/nodes/{id}Get a specific node by ID with all its edges
GET/api/v1/graph/nodes/{id}/impactImpact analysis: what other nodes reference or depend on this node

Node Types

Node TypeDescriptionExamples
case_typeA workflow template definitionSupport Request, Loan Application
stageA phase within a case typeIntake, Review, Approval
stepA discrete task within a stageDocument Check, Manager Sign-off
formA form definition with ordered fieldsIntake Form, KYC Form
fieldAn individual data fieldcustomer_email, loan_amount
moduleA Velaris platform moduleHxConnect, HxAnalytics, HxShield
endpointAn API endpointPOST /api/v1/cases, GET /api/v1/graph/query
access_groupA permission groupFinance Team, Legal Team
connectorAn integration connectorStripeConnector, SalesforceConnector
conceptAn abstract concept extracted from documentation or case typesSLA breach, fraud pattern
patternA recurring structural pattern detected in the graphparallel review, approval gate

Examples

# Natural language query
curl -s -X POST http://localhost:8200/api/v1/graph/query \
  -H "Content-Type: application/json" \
  -d '{"question": "Which stages require manager approval?"}'

# Path between two concepts
curl -s "http://localhost:8200/api/v1/graph/path?from=approval-stage&to=finance-access-group"

# Impact: what depends on the Intake stage?
curl -s http://localhost:8200/api/v1/graph/nodes/intake-stage-uuid/impact

# Re-sync after adding new case types
curl -s -X POST http://localhost:8200/api/v1/graph/sync

When to Use Which Endpoint

Question / TaskEndpoint
"How does X relate to Y?"/graph/query or /graph/path?from=X&to=Y
"What uses or depends on module X?"/graph/nodes/{id}/impact
"What is this concept?"/graph/explain?concept=term
"Find things similar to X"/graph/similar?concept=X
Explore visually/graph/visualize (open in browser)
After schema/case type changesPOST /graph/sync
Export for external tooling/graph/export
No authentication required for graph endpoints. The graph contains only structural/schema knowledge — case types, stages, modules, endpoints. It never exposes case instance data (customer names, form values, etc.).