New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

Query relationships

GET 

/relation-tuples

Get all relationships that match the query. Only the namespace field is required.

SDK ReferenceTypeScript
getRelationships()
ParametersTypeRequiredDescription
pageSizenumberoptionalItems per Page This is the number of items per page to return. For details on pagination please head over to the pagination documentation.
pageTokenstringoptionalNext Page Token The next page token. For details on pagination please head over to the pagination documentation.
namespacestringoptionalNamespace of the Relationship
objectstringoptionalObject of the Relationship
relationstringoptionalRelation of the Relationship
subjectIdstringoptionalSubjectID of the Relationship
subjectSetNamespacestringoptionalNamespace of the Subject Set
subjectSetObjectstringoptionalObject of the Subject Set
subjectSetRelationstringoptionalRelation of the Subject Set
VariableType
dataRelationships