Overview
Retrieve all relationship edges connected to a specific entity node. This shows how the entity is connected to other entities in the knowledge graph.
Advanced Feature: This endpoint is for advanced knowledge graph inspection. Most users don’t need to directly access entity edges. Use the standard memory retrieval endpoints instead.
Authentication
Your API key for authentication
Path Parameters
UUID of the entity node to get edges for /entity-edge/e090f257-c182-4930-819d-161c66bee335
Response
Array of relationship edges connected to this entity Unique identifier for the edge
UUID of the source entity node
UUID of the target entity node
Type of relationship (e.g., “USES”, “LOCATED_IN”, “DESIGNED_BY”)
ISO 8601 timestamp when edge was created
Example Request
curl -X GET https://memory.stru.ai/entity-edge/e090f257-c182-4930-819d-161c66bee335 \
-H "X-API-Key: windowseat"
Example Response
{
"edges" : [
{
"uuid" : "edge_uuid_123" ,
"source_node_uuid" : "e090f257-c182-4930-819d-161c66bee335" ,
"target_node_uuid" : "f32a1b9c-7d45-4e8f-9a1c-b3d2e4f5a678" ,
"relationship_type" : "USES" ,
"created_at" : "2025-10-11T03:15:00Z"
},
{
"uuid" : "edge_uuid_456" ,
"source_node_uuid" : "e090f257-c182-4930-819d-161c66bee335" ,
"target_node_uuid" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
"relationship_type" : "LOCATED_IN" ,
"created_at" : "2025-10-11T03:16:00Z"
}
]
}
Use Cases
Explore Relationships Discover how an entity is connected to other entities in the knowledge graph
Graph Visualization Get relationship data to build visual graph representations
Relationship Analysis Analyze patterns in how entities are related
Error Responses
Invalid UUID format {
"detail" : [
{
"loc" : [ "path" , "uuid" ],
"msg" : "value is not a valid uuid" ,
"type" : "type_error.uuid"
}
]
}
Entity node not found {
"detail" : "Entity node not found"
}