Access
PreviewAsk whether a person holds a permission on a place, and why or why not
POST
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
userId*stringapplication/json- body
permission*stringLength
1 <= lengthscope?The answer.
application/json- response
allowed*booleanreason?stringWhy not, in words a person can act on.
via?stringWhat allowed it, in words a person can read: the role, the place it was granted on and how that place reaches the one asked about, such as an environment that holds the cluster.
curl -X POST 'https://wardn.example.com/api/v1/members/string/can-i' \ -H 'Content-Type: application/json' \ -d '{ "permission": "release:approve"}'Example Response
{ "allowed": true, "reason": "string", "via": "string"}