> ## 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 Documents

> Browse the documents an API key can reach.

Paginated, most recently updated first, and already filtered to what your API key's creator can
reach — so anything it returns is a document you may also read in full, and a document missing from
it is one that person cannot see.

| Filter         | Effect                                                                                                                                               |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| `?folder=<id>` | Only documents inside that folder.                                                                                                                   |
| `?folder=root` | Only documents that sit outside any folder. `?folder=` empty is indistinguishable from the parameter being absent, which is why `root` is a literal. |

```bash theme={null}
curl --request GET \
  --url "https://api.nekt.ai/api/v1/semantic-layer/documents/?folder=root&expand=created_by" \
  --header "x-api-key: YOUR_API_KEY"
```

Use it to find the `id` to [read in full](/platform-api/semantic-layer/retrieve) or
[edit](/platform-api/semantic-layer/update), the `folder` to
[create](/platform-api/semantic-layer/create) into, or the ids to name in a
[permission assignment](/platform-api/permissions/semantic-layer/assign).

## Related

* [Retrieve a document](/platform-api/semantic-layer/retrieve) — one document, with its content.
* [Read the Semantic Layer](/platform-api/permissions/semantic-layer/resources) — this list plus the catalog root and the folders, as the three reads that feed a grant.


## OpenAPI

````yaml GET /api/v1/semantic-layer/documents/
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/documents/:
    get:
      tags:
        - v1
      summary: List Semantic Layer documents
      description: >-
        Documents the caller can see, most recently updated first. Filter with
        `?folder=<id>`, or `?folder=root` for documents that sit outside any
        folder.
      operationId: v1_semantic_layer_documents_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/PaginatedSemanticLayerDocumentList'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PaginatedSemanticLayerDocumentList:
      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/SemanticLayerDocument'
    SemanticLayerDocument:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 255
        content:
          type: string
        mentions:
          readOnly: true
        folder:
          type: string
          format: uuid
          nullable: true
          description: >-
            Folder to place the document in. Omit or send null to put it at the
            root.
        order:
          type: integer
          readOnly: true
          nullable: true
          description: >-
            Manual position among its siblings; NULL falls back to created_at
            ordering.
        created_by:
          type: string
          readOnly: true
          description: Created by (Expandable)
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - created_at
        - created_by
        - id
        - mentions
        - name
        - order
        - updated_at
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API Key authentication. Format: ''x-api-key: api_key'''

````