The Graph API exposes HxGraph's semantic knowledge graph for programmatic querying, path traversal, concept explanation, and re-indexing. Graph endpoints do not require authentication and do not expose case instance data — only structural platform knowledge.
| Method | Path | Description |
|---|---|---|
POST | /api/v1/graph/query | Natural language query over the graph. Body: {"question": "string"} |
GET | /api/v1/graph/path | Shortest path between two concepts. Params: ?from=A&to=B |
GET | /api/v1/graph/explain | Explain a concept in the graph. Params: ?concept=term |
GET | /api/v1/graph/similar | Find semantically similar concepts. Params: ?concept=term&top_k=5 |
GET | /api/v1/graph/report | Auto-generated Markdown report: communities, key nodes, relationship summary |
GET | /api/v1/graph/export | Full graph as JSON: all nodes, all edges, metadata |
POST | /api/v1/graph/sync | Re-index the graph from the database. Returns: {"nodes_indexed", "edges_created", "communities", "duration_ms"} |
GET | /api/v1/graph/visualize | Returns 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}/impact | Impact analysis: what other nodes reference or depend on this node |
| Node Type | Description | Examples |
|---|---|---|
case_type | A workflow template definition | Support Request, Loan Application |
stage | A phase within a case type | Intake, Review, Approval |
step | A discrete task within a stage | Document Check, Manager Sign-off |
form | A form definition with ordered fields | Intake Form, KYC Form |
field | An individual data field | customer_email, loan_amount |
module | A Velaris platform module | HxConnect, HxAnalytics, HxShield |
endpoint | An API endpoint | POST /api/v1/cases, GET /api/v1/graph/query |
access_group | A permission group | Finance Team, Legal Team |
connector | An integration connector | StripeConnector, SalesforceConnector |
concept | An abstract concept extracted from documentation or case types | SLA breach, fraud pattern |
pattern | A recurring structural pattern detected in the graph | parallel review, approval gate |
# 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
| Question / Task | Endpoint |
|---|---|
| "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 changes | POST /graph/sync |
| Export for external tooling | /graph/export |