> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenia.team/llms.txt
> Use this file to discover all available pages before exploring further.

# List Permissions

> Lists the user permissions a custom role can be given. Pass each `id` in a role's `permissions` array.

This route takes no authentication. Send `workspace-id` so permissions gated behind a workspace flag are listed for that workspace; without it they are left out.



## OpenAPI

````yaml GET /api/v1/mgt/permissions
openapi: 3.1.0
info:
  title: Xenia Team API - List Permissions
  version: 1.0.0
  description: The permission catalog a role's `permissions` IDs come from.
servers:
  - url: https://api.xenia.team
security: []
paths:
  /api/v1/mgt/permissions:
    get:
      tags:
        - Roles
      summary: List Permissions
      description: >-
        Lists the user permissions a custom role can be given. Pass each `id` in
        a role's `permissions` array.


        This route takes no authentication. Send `workspace-id` so permissions
        gated behind a workspace flag are listed for that workspace; without it
        they are left out.
      parameters:
        - name: workspace-id
          in: header
          required: false
          description: >-
            Workspace ID (UUID). Only decides whether flag-gated permissions are
            listed.
          schema:
            type: string
            format: uuid
            example: cb363f7e-c52a-4478-911d-f6a6f791090e
      responses:
        '200':
          description: Permission catalog.
          content:
            application/json:
              example:
                data:
                  - id: 0b8f2c1e-6d4a-4f3b-9e2c-1a7d5b8c9e0f
                    name: Manage Custom Roles
                    title: CAN_MANAGE_ROLES
                    description: Create, edit, delete custom roles
                    group: OTHER
                  - id: 5e7a9c3b-2f1d-4c8e-a6b4-3d2e1f0a9b8c
                    name: Add/Remove Users
                    title: CAN_MANAGE_USERS
                    description: Add/remove users from your worskapce
                    group: USER
                meta: {}
        '500':
          description: Internal server error.
      security: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.