GET

/api/public/v1/permissions/check

Live

Check whether a named permission gate is enabled for the calling organization.

Parameters

NameInRequiredDescription
gatequerytrueOne of 17 gate names, e.g. canManageFinance, canAccessAudit, canManageGovernment -- see orgGates.js for the full list.

Response

{ gate, allowed }. Note: an API key always resolves a synthetic owner-level membership, so this checks that a capability exists and is enabled for the org, not a specific human's individual role.

Example

curl -H "Authorization: Bearer $INAYA_API_KEY" \
  "https://app.inaya.network/api/public/v1/permissions/check"