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

Skip to main content

Check a permission

GET 

/relation-tuples/check

To learn how relationship tuples and the check works, head over to the documentation.

SDK ReferenceTypeScript
checkPermissionOrError()
ParametersTypeRequiredDescription
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
maxDepthnumberoptional
VariableType
dataCheckPermissionResult