Get API
Back to Marketplace
🔐
Freemiumv1.1.0

PermitLayer RBAC API

Authentication Infrastructure

PermitLayer implements RBAC, ABAC, and ReBAC authorization models via a simple check() call. Define roles and permissions in the dashboard or via API, sync with your existing user system, and enforce policy at the edge. Includes real-time audit logs and a permission debugger.

RESTTypeScript SDKWebhooksOpenAPINode.js
https://api.permitlayer.io/v1
Trust Score

4.7 / 5

98 dev notes

Live Uptime

99.95%

Guaranteed SLA

Avg Latency

9ms

Global Edge

API Traffic

2.1M

monthly average

Available Endpoints

POST/checkCheck if a user has a permission
POST/roles/:id/assignAssign a role to a user
GET/rolesList all roles
GET/auditQuery permission audit logs
Implementation Example
import { PermitLayer } from '@getapi/permitlayer';

const pl = new PermitLayer({ apiKey: process.env.PL_KEY });

const allowed = await pl.check({
  user: 'user_123',
  action: 'delete',
  resource: { type: 'invoice', id: 'inv_456', tenant: 'acme' },
});

if (!allowed) throw new Error('Forbidden');

API Access

✓ FREE TIER ACTIVE

First 50,000 calls are free every month.

Personal$29/mo
Team$89/mo
Enterprise$349/mo
Technical Docs

API Provider

Omar Hassan

Omar Hassan

Cloud infra engineer. Auth, storage, and infra APIs.