permissions
Create permission
Create a new permission to define specific actions or capabilities in your RBAC system. Permissions can be assigned directly to API keys or included in roles.
Use hierarchical naming patterns like documents.read, admin.users.delete, or billing.invoices.create for clear organization.
Important: Permission names must be unique within the workspace. Once created, permissions are immediately available for assignment.
Required Permissions
Your root key must have the following permission:
- rbac.*.create_permission
post/v2/permissions.createPermission
Request body
Example request
{
"name": "users.read",
"slug": "users-read",
"description": "Grants read-only access to user profile information, account settings, and subscription status."
}Response
Permission created successfully
Example response
{
"meta": {
"requestId": "req_123"
},
"data": {
"permissionId": "perm_1234567890abcdef"
}
}