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

# List Knowledgebase

> API key permission: Knowledge Base (Admin also opens it).



## OpenAPI

````yaml /api-reference/openapi.json get /knowledgebase/list
openapi: 3.1.0
info:
  title: Neural Factory API
  version: 0.1.0
  description: >-
    The endpoints a program can call with an API key. Exchange the key's secret
    for a token at POST /apikeys/token and send it as a Bearer token.
servers:
  - url: https://api.neuralfactory.ai
    description: SaaS
  - url: https://{apiHost}
    description: 'Enterprise: the API address of your own deployment'
    variables:
      apiHost:
        default: api.example.com
        description: Your deployment's API host
security:
  - bearerAuth: []
tags:
  - name: API keys
  - name: Chat
  - name: Runs
  - name: Agents
  - name: Workflows
  - name: Schedules
  - name: Knowledge bases
  - name: Documents
  - name: Search
  - name: Skills
  - name: Toolkits
  - name: Files
  - name: Interactions
  - name: Usage and billing
  - name: Catalogue
  - name: Browser
  - name: Users
  - name: Groups
  - name: Builds
paths:
  /knowledgebase/list:
    get:
      tags:
        - Knowledge bases
      summary: List Knowledgebase
      description: 'API key permission: Knowledge Base (Admin also opens it).'
      operationId: list_knowledgebase_knowledgebase_list_get
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            description: Page number, starting from 1
            default: 1
            title: Page
          description: Page number, starting from 1
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Number of items per page
            default: 20
            title: Page Size
          description: Number of items per page
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Search by title or description
            title: Search
          description: Search by title or description
        - name: sort_by
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Field to sort by (title, description, lastUpdated, documents,
              sources, status, createdByName)
            title: Sort By
          description: >-
            Field to sort by (title, description, lastUpdated, documents,
            sources, status, createdByName)
        - name: sort_order
          in: query
          required: false
          schema:
            type: string
            description: 'Sort order: asc or desc'
            default: desc
            title: Sort Order
          description: 'Sort order: asc or desc'
        - name: env
          in: query
          required: false
          schema:
            title: Env
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/KnowledgeBaseList'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    KnowledgeBaseList:
      properties:
        items:
          items:
            $ref: '#/components/schemas/KnowledgeBaseListEntry'
          type: array
          title: Items
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      type: object
      required:
        - items
        - meta
      title: KnowledgeBaseList
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    KnowledgeBaseListEntry:
      properties:
        id:
          type: string
          title: Id
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        organization_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Id
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Email
        created_by_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Name
        visibility:
          type: string
          title: Visibility
          default: private
        allowed_user_ids:
          items:
            type: string
          type: array
          title: Allowed User Ids
          default: []
        allowed_group_ids:
          items:
            type: string
          type: array
          title: Allowed Group Ids
          default: []
        languages:
          items:
            type: string
          type: array
          title: Languages
          default: []
        sources_count:
          type: integer
          title: Sources Count
        total_documents:
          type: integer
          title: Total Documents
        last_updated:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Updated
        status:
          type: string
          title: Status
        availability:
          type: string
          title: Availability
      type: object
      required:
        - id
        - title
        - description
        - sources_count
        - total_documents
        - last_updated
        - status
        - availability
      title: KnowledgeBaseListEntry
      description: Simplified model for list view with aggregated data
    PaginationMeta:
      properties:
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - total
        - page
        - page_size
        - total_pages
      title: PaginationMeta
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        The access_token returned by POST /apikeys/token for an API key's
        secret.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.