Check Authorization
Find out whether someone can do something before they try, and which role, grant, or rule is behind the answer.
Headers
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
The member's userId, from List Members.
A permission key, from List Permissions.
A Cirra capability key, from Get Capability Catalog or List Universal Actions.
Response fields
userIdstringThe member's userId.
permissionobjectThe permission answer, or null when no permission was asked about.
keystringThe permission asked about.
allowedbooleanTrue when the member holds it.
sourcesarrayWhere they hold it from: role, directGrant, staff, companySetting, or membership (every member holds it). Empty when they do not.
capabilityobjectThe Cirra capability answer, or null when no capability was asked about.
keystringThe capability key asked about.
allowedbooleanFalse when Cirra refuses it.
decisionstringallow (Cirra asks the member first unless the thread runs with full access), never_ask, or deny.
allownever_askdeny
layerstringWhich layer decided: role, user (their own rules), or default.
roleuserdefault
ruleKeystringThe key of the rule that decided: the key asked about, or the broader key it fell back to.