Skip to main content

Visualize

Get D3-compatible visualization data for the schema graph with nodes and edges formatted for graph rendering.

GET/v1/schema-graph/visualize

Response

Response fields

nodesarrayArray of schema class nodes (same shape as List Classes items).
nodes[].idstringNode UUID (schema class ID).
nodes[].schema_classstringCanonical class name.
nodes[].statusstringClass status.
edgesarrayArray of edge objects formatted for graph rendering.
edges[].idstringEdge UUID.
edges[].sourcestringSource node UUID.
edges[].targetstringTarget node UUID.
edges[].typestringEdge type (e.g. references, extends).
edges[].weightnumberEdge weight between 0 and 1.

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

401unauthorizedMissing or invalid API key.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.