Visualize
Get D3-compatible visualization data for the schema graph with nodes and edges formatted for graph rendering.
Retrieve the entire schema graph as a D3-compatible payload with nodes (classes) and edges (relationships). The response is structured for direct consumption by graph visualization libraries such as D3.js, Cytoscape, or vis.js. Nodes include full class metadata; edges use source and target fields referencing node IDs.
/v1/schema-graph/visualizeResponse
Response fields
Response
{
"nodes": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"schema_class": "Invoice",
"document_type_id": "doc-type-uuid",
"description": null,
"current_version_id": "ver-uuid-3",
"status": "active",
"created_at": "2024-08-01T00:00:00.000Z",
"updated_at": "2024-09-14T00:00:00.000Z",
"links": {
"self": "/v1/schema-graph/classes/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"versions": "/v1/schema-graph/classes/a1b2c3d4-e5f6-7890-abcd-ef1234567890/versions"
}
}
],
"edges": [
{
"id": "edge-uuid-1",
"source": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"target": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"type": "references",
"weight": 0.87
}
]
}Errors
Error responses
The response is structured for direct consumption by D3.js force simulations, Cytoscape, or vis.js -- edge source and target fields reference node id values. Filter nodes client-side by status to exclude archived classes, and use edge weight to control link distance or opacity in your graph layout.