Effective capabilities for the current user
GET /auth/me/capabilities
Returns the fully resolved capability set: role-chain capabilities unioned with explicit grants, minus explicit revokes. This is what middleware uses for enforcement.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Effective capability set
object
object
Single-inheritance parent role; null for root roles.
Capability codes attached directly to this role. Does NOT
include inherited capabilities — chase parent_id to get the
full set, or call /auth/me/capabilities for the resolved
view of the current user.
The resolved capability set: (role chain capabilities) UNION (explicit grants) EXCEPT (explicit revokes). What middleware checks against when enforcing x-required-capabilities.
Capabilities granted explicitly to this user.
Capabilities revoked explicitly from this user.
Authentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}