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

# List Permissions

> Retrieves all Permissions with pagination.



## OpenAPI

````yaml /pt/openapi/v3-current/AM-identity.yaml get /v1/permissions
openapi: 3.0.1
info:
  contact: {}
  description: This is a swagger documentation for the Identity API
  termsOfService: http://swagger.io/terms/
  title: Identity API
  version: 1.0.0
servers:
  - url: //localhost:4001/
security: []
paths:
  /v1/permissions:
    get:
      tags:
        - Permissions
      summary: List Permissions
      description: Retrieves all Permissions with pagination.
      parameters:
        - description: Page number
          in: query
          name: page
          schema:
            default: 1
            type: integer
        - description: Items per page
          in: query
          name: limit
          schema:
            default: 10
            type: integer
        - description: Filter by name (case-insensitive substring)
          in: query
          name: name
          schema:
            type: string
        - description: Filter by exact resource identifier
          in: query
          name: resource
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_200_1'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    inline_response_200_1:
      example:
        Pagination:
          total: 10
          limit: 10
          page: 1
          items: '{}'
        items:
          - effect: allow
            isEnabled: true
            roles:
              - roles
              - roles
            name: Midaz Editor Permission
            groups:
              - groups
              - groups
            resources:
              - resources
              - resources
            id: midaz-editor-permission
            actions:
              - actions
              - actions
            users:
              - users
              - users
          - effect: allow
            isEnabled: true
            roles:
              - roles
              - roles
            name: Midaz Editor Permission
            groups:
              - groups
              - groups
            resources:
              - resources
              - resources
            id: midaz-editor-permission
            actions:
              - actions
              - actions
            users:
              - users
              - users
      properties:
        Pagination:
          $ref: '#/components/schemas/Pagination'
        items:
          items:
            $ref: >-
              #/components/schemas/github_com_LerianStudio_plugin-access-manager_v3_components_identity_pkg_model.PermissionResponse
          type: array
      type: object
    pkg.HTTPError:
      properties:
        code:
          type: string
        entityType:
          type: string
        err:
          type: object
        message:
          type: string
        title:
          type: string
      type: object
    Pagination:
      description: >-
        Pagination is the struct designed to store the pagination data of an
        entity list.
      example:
        total: 10
        limit: 10
        page: 1
        items: '{}'
      properties:
        items:
          type: object
        limit:
          example: 10
          type: integer
        page:
          example: 1
          type: integer
        total:
          example: 10
          type: integer
      type: object
    github_com_LerianStudio_plugin-access-manager_v3_components_identity_pkg_model.PermissionResponse:
      example:
        effect: allow
        isEnabled: true
        roles:
          - roles
          - roles
        name: Midaz Editor Permission
        groups:
          - groups
          - groups
        resources:
          - resources
          - resources
        id: midaz-editor-permission
        actions:
          - actions
          - actions
        users:
          - users
          - users
      properties:
        actions:
          items:
            type: string
          type: array
        effect:
          example: allow
          type: string
        groups:
          items:
            type: string
          type: array
        id:
          example: midaz-editor-permission
          type: string
        isEnabled:
          example: true
          type: boolean
        name:
          example: Midaz Editor Permission
          type: string
        resources:
          items:
            type: string
          type: array
        roles:
          items:
            type: string
          type: array
        users:
          items:
            type: string
          type: array
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer authentication. Send Authorization: Bearer <token>.'
      in: header
      name: Authorization
      type: apiKey

````