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

# List pages

> Returns a paginated list of Knowledge Hub pages. List rows are metadata
only — the page body is omitted. Fetch a single page to get its content.

Filter by folder, status, owner, skill, free-text query, or update-date
range. Results are sorted by `updated_at` (newest first) by default.

API keys are workspace-scoped and admin-created, so the response includes
every non-archived page in the workspace — including private and draft
pages — regardless of visibility.




## OpenAPI

````yaml /api-reference/openapi.yaml get /knowledge-hub/pages
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/pages:
    get:
      tags:
        - Knowledge Hub - Pages
      summary: List pages
      description: >
        Returns a paginated list of Knowledge Hub pages. List rows are metadata

        only — the page body is omitted. Fetch a single page to get its content.


        Filter by folder, status, owner, skill, free-text query, or update-date

        range. Results are sorted by `updated_at` (newest first) by default.


        API keys are workspace-scoped and admin-created, so the response
        includes

        every non-archived page in the workspace — including private and draft

        pages — regardless of visibility.
      operationId: listKnowledgeHubPages
      parameters:
        - name: folder_id
          in: query
          description: Filter by folder UUID
          schema:
            type: string
        - name: status
          in: query
          description: Filter by page status
          schema:
            type: string
            enum:
              - draft
              - published
              - archived
        - name: owner_id
          in: query
          description: Filter by the page owner's user UUID
          schema:
            type: string
        - name: skill_id
          in: query
          description: Filter by an associated skill UUID
          schema:
            type: string
        - name: query
          in: query
          description: Case-insensitive search over page titles
          schema:
            type: string
        - name: updated_after
          in: query
          description: Only include pages updated on or after this date (ISO 8601)
          schema:
            type: string
            format: date-time
        - name: updated_before
          in: query
          description: Only include pages updated on or before this date (ISO 8601)
          schema:
            type: string
            format: date-time
        - name: sort
          in: query
          description: |
            Sort field. `updated_at` and `created_at` are newest-first; `title`
            is A–Z.
          schema:
            type: string
            default: updated_at
            enum:
              - updated_at
              - created_at
              - title
        - name: page
          in: query
          description: >-
            Pagination page number (1-indexed) — which page of results to
            return, not a Knowledge Hub page.
          schema:
            type: integer
            default: 1
            minimum: 1
        - name: page_size
          in: query
          description: Number of results per page (max 100)
          schema:
            type: integer
            default: 50
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: Paginated list of pages (metadata only)
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/KnowledgeHubPage'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
              example:
                data:
                  - id: p1a2b3c4d5e6
                    title: Pricing objection guide
                    status: published
                    visibility: workspace
                    owner:
                      id: u1a2b3c4d5e6
                      email: jane@acme.com
                      first_name: Jane
                      last_name: Smith
                    folders:
                      - id: f1a2b3c4d5e6
                        name: Sales
                        emoji: 💼
                    skills:
                      - id: sk1a2b3c4d5e
                        name: Objection handling
                    source_count: 3
                    version: 4
                    cover: ''
                    published_at: '2026-06-01T12:00:00Z'
                    created_at: '2026-05-01T09:00:00Z'
                    updated_at: '2026-06-10T15:30:00Z'
                pagination:
                  page: 1
                  page_size: 50
                  total_count: 123
                  total_pages: 3
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    KnowledgeHubPage:
      type: object
      description: >-
        A Knowledge Hub page. List responses return this metadata-only shape (no
        body).
      properties:
        id:
          type: string
          description: Unique page identifier (UUID)
        title:
          type: string
          description: Page title
        status:
          type: string
          enum:
            - draft
            - published
            - archived
          description: Current page status
        visibility:
          type: string
          enum:
            - private
            - workspace
            - global
          description: Visibility scope of the page
        owner:
          $ref: '#/components/schemas/User'
          nullable: true
          description: User who owns the page
        folders:
          type: array
          description: Folders the page belongs to
          items:
            $ref: '#/components/schemas/KnowledgeHubFolderRef'
        skills:
          type: array
          description: Skills associated with the page
          items:
            $ref: '#/components/schemas/KnowledgeHubSkillRef'
        source_count:
          type: integer
          description: Number of sources attached to the page
        version:
          type: integer
          nullable: true
          description: Version number of the published version, or null if never published
        cover:
          type: string
          description: Cover image reference (empty string if none)
        published_at:
          type: string
          format: date-time
          nullable: true
          description: When the page was last published
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Pagination:
      type: object
      properties:
        page:
          type: integer
          description: Current page number
        page_size:
          type: integer
          description: Number of items per page
        total_count:
          type: integer
          description: Total number of items
        total_pages:
          type: integer
          description: Total number of pages
    User:
      type: object
      properties:
        id:
          type: string
          description: Unique user identifier
        email:
          type: string
          format: email
          description: User's email address
        first_name:
          type: string
          description: User's first name
        last_name:
          type: string
          description: User's last name
    KnowledgeHubFolderRef:
      type: object
      description: A compact folder reference embedded in 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
    KnowledgeHubSkillRef:
      type: object
      description: A compact skill reference embedded in pages.
      properties:
        id:
          type: string
          description: Unique skill identifier (UUID)
        name:
          type: string
          description: Skill name
    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:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorDetail'
          example:
            error:
              type: invalid_request
              code: invalid_pagination
              message: Invalid pagination parameters
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        API key created in Settings > API.

        Format: `exec_live_` followed by 40 alphanumeric characters.

````