Relationships

Relationship management endpoints

Relationships are basic building blocks of a graph. They can be automatically extracted from a document and then added to a graph.

To manage relationships extracted from a document, you can use the following endpoints:

MethodEndpointDescription
GET/documents/{id}/relationshipList Relationships identified within a document.

Once entities are added to a graph using the “/graphs/{id}/{object_type}/add” endpoint, you can manage them using the following endpoints:

MethodEndpointDescription
GET/graphs/{id}/relationshipsGet relationships for a graph
GET/graphs/{id}/relationships/{id}Get a relationship for a graph