Edges
List inter-class edges (relationships) between schema graph classes with relationship type and weight information.
Edges represent relationships between schema graph classes, computed using cosine similarity between field embeddings. Each edge captures a directional relationship (e.g. an Invoice class references a Purchase Order class) with a weight indicating the strength of the relationship. Use edges to understand how document types relate to each other across your workspace.
/v1/schema-graph/edgesResponse
Response fields
Response
{
"data": [
{
"id": "edge-uuid-1",
"source_schema_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"target_schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"edge_type": "references",
"weight": 0.87,
"computed_at": "2024-09-14T00:00:00.000Z"
}
]
}Errors
Error responses
Pair this with GET /v1/schema-graph/classes to build relationship maps between document types. High-weight edges (e.g. weight > 0.7) indicate strong field overlap -- useful for identifying document types that should share user schema fields or be linked in cases. Feed the results directly into GET /v1/schema-graph/visualize for a D3-ready graph payload.