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

# Get folder

> Returns a single Knowledge Hub folder by its UUID.



## OpenAPI

````yaml /api-reference/openapi.yaml get /knowledge-hub/folders/{folder_id}
openapi: 3.0.3
info:
  title: Exec API
  version: '1.0'
  description: >
    REST API for programmatic access to your Exec workspace.


    Use the Exec API to read workspace data, list members, retrieve group
    information,

    and create interactive scenario creation sessions.


    ## Authentication

    All requests require a valid API key passed in the Authorization header:

    ```

    Authorization: Bearer exec_live_...

    ```


    Create API keys in your workspace settings under **Settings > API**.
servers:
  - url: https://api.exec.com/rest/v1
    description: Production
security:
  - bearerAuth: []
paths:
  /knowledge-hub/folders/{folder_id}:
    get:
      tags:
        - Knowledge Hub - Folders
      summary: Get folder
      description: Returns a single Knowledge Hub folder by its UUID.
      operationId: getKnowledgeHubFolder
      parameters:
        - name: folder_id
          in: path
          required: true
          description: The folder's unique identifier (UUID)
          schema:
            type: string
      responses:
        '200':
          description: Folder detail
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeHubFolder'
              example:
                id: f1a2b3c4d5e6
                name: Sales
                emoji: 💼
                parent: null
                visibility: workspace
                item_count: 12
                subfolder_count: 3
                created_at: '2026-05-01T09:00:00Z'
                updated_at: '2026-05-10T10:00:00Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    KnowledgeHubFolder:
      type: object
      description: >-
        A Knowledge Hub folder (also called a Space or Hub) that groups pages
        and sources.
      properties:
        id:
          type: string
          description: Unique folder identifier (UUID)
        name:
          type: string
          description: Folder name
        emoji:
          type: string
          nullable: true
          description: Emoji icon shown next to the folder
        parent:
          type: string
          nullable: true
          description: UUID of the parent folder, or null for a top-level folder
        visibility:
          type: string
          enum:
            - private
            - workspace
            - global
          description: Visibility scope of the folder
        item_count:
          type: integer
          description: Number of non-archived pages directly in this folder
        subfolder_count:
          type: integer
          description: Number of direct child folders
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ValidationErrorDetail:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: Error category (e.g., "invalid_request")
            code:
              type: string
              description: Specific error code (e.g., "user_not_found")
            message:
              type: string
              description: Human-readable error message
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorDetail'
          example:
            error:
              type: authentication_error
              code: invalid_api_key
              message: Invalid or inactive API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorDetail'
          example:
            error:
              type: not_found
              message: 'Scenario not found: abc123'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        API key created in Settings > API.

        Format: `exec_live_` followed by 40 alphanumeric characters.

````