Access in the right places
Scope a role to a workspace. Share a specific resource when someone needs access to just that item.
Model your workspacesDecide who can view, edit and share. Start with roles and add resource-level rules as your app grows.
Works with your existing sign-in.
API key management included.
Your backend asks: can this person perform this action on this resource, in this workspace?
Check the access you've assigned for this action and resource.
Your backend performs the allowed operation.
allowed: true// Your backend: session already verified.
const result = await fetch(
`${permissionsBase}/permissions/check`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': serverKey,
},
body: JSON.stringify({
userId: user.permissionsId,
action: 'edit',
resource: `document/${document.id}`,
product: 'your-app',
service: 'files',
scope: document.workspaceId,
}),
}
)
if (!result.ok) throw new Error('Check failed')
const { data } = await result.json()
if (data?.attributes?.allowed !== true) {
return new Response('Forbidden', { status: 403 })
}
// Only run the operation after an explicit allow.
return handleAllowedRequest()Use an identity from the verified session and a workspace from your application data. Keep the authorized server credential on your backend. Errors or missing decisions must not run the operation.
Register your product, service and resource types, then assign access before making checks. Follow the quickstart · See the check contract
Keep teams separate, give integrations limited access, and understand when permissions change.
Scope a role to a workspace. Share a specific resource when someone needs access to just that item.
Model your workspacesIssue keys for scripts and integrations. Limit their permissions, workspaces and lifetime; rotate or revoke them when needed.
Create and verify API keysReview access changes and investigate permission decisions when a teammate needs help.
Explore access historyInterface examples. Build your own screens or use the Preview management components.
Already use Auth0, Clerk or your own account system? Your backend verifies the session, maps the person to a Permissions user, then checks access.
You can also pair it with SaaSLayer Users for accounts and sign-in. Choose the layers you need.
Connect your existing providerStart with one workspace, one role and your first permission check.
Available in the controlled beta, with assisted setup.