Skip to content

GET   /permissions

Get all permissions for the current account

Retrieves a list of all available permissions in the system for the current account. Optionally returns detailed permission information grouped by category when the detailed parameter is provided.

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

x-account-id   header string

Account ID for the request

Optional Parameters

Click here to view an exhaustive list of all available parameters
detailed   query string

When present (with any value or no value), returns permissions grouped by category with detailed descriptions. When omitted, returns a simple list of permission objects or permission names.

accountId   query string

(Super Admin only) ID of the account to retrieve permissions for. If omitted, returns all system permissions.

Try it out

Loading...

Output:

Responses

Description

Permissions retrieved successfully

null

References

#/components/parameters/xAccountIdHeader

in: header
name: x-account-id
schema:
type: string
description: Account ID for the request
required: true
example: "2311"

#/components/schemas/Permission

type: object
properties:
id:
type: integer
description: Unique identifier for the permission
permission:
type: string
description: Permission name/code
description:
type: string
description: Human-readable description of what the permission allows
category:
type: string
description: Category or group the permission belongs to

#/components/schemas/PermissionChartPermission

type: object
description: Detailed permission information within a category
properties:
name:
type: string
description: Display name for the permission
example: View CRM Data
description:
type: string
description: Detailed explanation of what this permission allows
example: Access customer profiles, leads, and contact history. View customer
interactions and relationship data.
permission:
type: string
description: Permission code/key used in the system
example: readCRM

#/components/schemas/PermissionChartItem

type: object
description: Grouped permission category with detailed permission information
properties:
name:
type: string
description: Name of the permission category (e.g., "CRM", "Applications")
example: CRM
description:
type: string
description: Description of what this permission category controls
example: Manage customer relationship data and lead information
permissions:
type: array
description: List of permissions in this category
items:
$ref: "#/components/schemas/PermissionChartPermission"

#/components/schemas/Error

type: object
properties:
error:
type: string
description: Error message
status:
type: integer
description: HTTP status code
message:
type: string
description: Detailed error message
description: Error response object
required:
- error

Route Source Code

Check out the source code for this route entrypoint here: /permissions/route.ts

Or the swagger.yaml spec this documentation was generated from: /permissions/swagger.yaml