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

# List Semantic Layer Folders

> The folders you can grant on.

Paginated, and already filtered to what your API key's creator can reach — anything returned is a folder you may name in an [assignment](/platform-api/permissions/semantic-layer/assign).

A grant on a folder reaches the documents inside it, so this is usually the level you want rather than granting document by document.

<Warning>
  Read-only for API keys. Creating, renaming, or deleting a folder through a machine credential returns `403` — use the app or an MCP token for that.
</Warning>

## Related

* [Read the Semantic Layer](/platform-api/permissions/semantic-layer/resources) — the three read endpoints and how they fit together.
* [List Semantic Layer Documents](/platform-api/permissions/semantic-layer/list-documents) — the level below.


## OpenAPI

````yaml GET /api/v1/semantic-layer/folders/
openapi: 3.0.3
info:
  title: Nekt API
  version: v1
  description: Nekt API Documentation
  contact:
    email: support@nekt.ai
servers:
  - url: https://api.nekt.ai
security: []
paths:
  /api/v1/semantic-layer/folders/:
    get:
      tags:
        - v1
      description: >-
        Permission-scoped querysets and expand[]-aware prefetch builders.


        Split out from the viewsets so the search endpoint (B7) can reuse it --
        it merges

        matches across two models and so is not a ModelViewSet bound to one
        queryset.


        Consumers must provide `self.request` and `self.expand_tree`.
      operationId: v1_semantic_layer_folders_list
      parameters:
        - name: page
          required: false
          in: query
          description: A page number within the paginated result set.
          schema:
            type: integer
        - name: page_size
          required: false
          in: query
          description: Number of results to return per page.
          schema:
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedSemanticLayerFolderList'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PaginatedSemanticLayerFolderList:
      type: object
      required:
        - count
        - results
      properties:
        count:
          type: integer
          example: 123
        next:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=4
        previous:
          type: string
          nullable: true
          format: uri
          example: http://api.example.org/accounts/?page=2
        results:
          type: array
          items:
            $ref: '#/components/schemas/SemanticLayerFolder'
    SemanticLayerFolder:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 256
        slug:
          type: string
          readOnly: true
        description:
          type: string
          nullable: true
        icon:
          type: string
          nullable: true
          maxLength: 256
        order:
          type: integer
          readOnly: true
          nullable: true
        hidden:
          type: boolean
          description: >-
            Frontend-only: hides the folder from the tree, still reachable in
            the details view. The backend does not filter on it, except in the
            pins listing.
        parent:
          type: string
          format: uuid
          nullable: true
          description: Parent folder. Omit or send null to create at the root.
        created_by:
          type: integer
          readOnly: true
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - created_at
        - created_by
        - id
        - name
        - order
        - slug
        - updated_at
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API Key authentication. Format: ''x-api-key: api_key'''

````