GET
/api/public/v1/permissions/check
LiveCheck whether a named permission gate is enabled for the calling organization.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
| gate | query | true | One 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"