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

# List knowledge entries of the current tenant

> Return knowledge entries of the current tenant, optionally filtered.



## OpenAPI

````yaml /api-reference/openapi.json get /api/knowledge/knowledge-entries
openapi: 3.1.0
info:
  title: Big Panda — Public API
  description: >-
    Externe REST-API für Connector-Plugins (JTL, Shopware), n8n-Integrationen
    und Custom-Clients. Tenant-Routing über Subdomain, Auth über Bearer-Token.
  version: 0.1.0
servers:
  - url: https://{tenant}.app.big-panda.ai
    description: Big Panda — Tenant-Subdomain. Ersetze {tenant} durch deinen Tenant-Slug.
    variables:
      tenant:
        default: demo
        description: Dein Big-Panda-Tenant-Slug (z.B. 'acme').
security:
  - BearerAuth: []
tags:
  - name: Products
  - name: Knowledge Entries
  - name: Categories
  - name: Sites
  - name: Search
  - name: OAuth
    description: >-
      OAuth-2.1-Authentifizierung — Discovery, Dynamic Client Registration,
      Authorize, Token, Revoke.
paths:
  /api/knowledge/knowledge-entries:
    get:
      tags:
        - Knowledge Entries
      summary: List knowledge entries of the current tenant
      description: Return knowledge entries of the current tenant, optionally filtered.
      operationId: list_knowledge_entries_knowledge_entries_get
      parameters:
        - name: category_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            description: If set, only entries within this category are returned
            title: Category Id
          description: If set, only entries within this category are returned
        - name: type
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/EntryType'
              - type: 'null'
            description: >-
              If set, only entries of this discriminator type are returned
              (knowledge, skill, process, glossary, memory, bootstrap,
              skill_index). None = all types.
            title: Type
          description: >-
            If set, only entries of this discriminator type are returned
            (knowledge, skill, process, glossary, memory, bootstrap,
            skill_index). None = all types.
        - name: project_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            description: >-
              If set, only entries linked to that project via project_members
              are returned (B.3).
            title: Project Id
          description: >-
            If set, only entries linked to that project via project_members are
            returned (B.3).
        - name: visibility
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/Visibility'
              - type: 'null'
            description: If set, only entries with this visibility are returned
            title: Visibility
          description: If set, only entries with this visibility are returned
        - name: layer
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: If set, only entries with this layer are returned
            title: Layer
          description: If set, only entries with this layer are returned
        - name: include_expired
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              If true, expired memory entries are included (Memory-Admin UI).
              Ceiling and personal-ownership remain enforced.
            default: false
            title: Include Expired
          description: >-
            If true, expired memory entries are included (Memory-Admin UI).
            Ceiling and personal-ownership remain enforced.
        - name: X-Scopes
          in: header
          required: false
          schema:
            type: string
            description: Space-separated scope set from the token (ADR-015)
            default: ''
            title: X-Scopes
          description: Space-separated scope set from the token (ADR-015)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KnowledgeEntryResponse-Output'
                title: Response List Knowledge Entries Knowledge Entries Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EntryType:
      type: string
      enum:
        - knowledge
        - skill
        - process
        - glossary
        - memory
        - bootstrap
        - skill_index
      title: EntryType
      description: |-
        Allowed values for the `type` discriminator (ADR-020).

        Mirrors `ALLOWED_TYPES` in app/models/knowledge_entry.py and the
        DB CHECK constraint added in migration 0026. Each value selects a
        metadata-schema in app/schemas/entry_metadata.py.
    Visibility:
      type: string
      enum:
        - public
        - internal
        - personal
        - restricted
        - community
        - workspace
      title: Visibility
      description: |-
        Allowed values for the `visibility` field of a knowledge entry.

        'personal' is ownership-gated (ADR-015 §3a): it exists in the enum
        so responses carrying it validate correctly, but write-side routes
        block it on the main path — personal entries are created via
        POST /knowledge-entries/personal only.

        'workspace' (ROADMAP M.8) is the workspace-scoped visibility hook.
        Code accepts the value passively until `tenants.workspaces_enabled`
        is flipped on; today no read path filters by it.
    KnowledgeEntryResponse-Output:
      properties:
        title:
          type: string
          maxLength: 500
          minLength: 1
          title: Title
        content:
          type: string
          minLength: 1
          title: Content
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
        category_id:
          type: string
          format: uuid
          title: Category Id
        layer:
          anyOf:
            - type: string
              maxLength: 50
            - type: 'null'
          title: Layer
        tags:
          items:
            type: string
          type: array
          title: Tags
        visibility:
          $ref: '#/components/schemas/Visibility'
        id:
          type: string
          format: uuid
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        type:
          $ref: '#/components/schemas/EntryType'
        version:
          type: integer
          title: Version
        workspace_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Workspace Id
        created_by_user_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Created By User Id
        language:
          type: string
          title: Language
        translation_group_id:
          type: string
          format: uuid
          title: Translation Group Id
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
        source:
          $ref: '#/components/schemas/KnowledgeSource'
        source_reference:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Reference
        embedding_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Embedding Model
        search_keywords:
          items:
            type: string
          type: array
          title: Search Keywords
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - title
        - content
        - category_id
        - visibility
        - id
        - tenant_id
        - type
        - version
        - language
        - translation_group_id
        - source
        - source_reference
        - embedding_model
        - created_at
        - updated_at
      title: KnowledgeEntryResponse
      description: Knowledge entry data returned in HTTP responses.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    KnowledgeSource:
      type: string
      enum:
        - manual
        - import
        - conversational
        - learning_loop
        - system
      title: KnowledgeSource
      description: Where a knowledge entry originated from.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API-Token aus dem Big-Panda-Admin-UI unter Einstellungen → API-Keys.
        Header: `Authorization: Bearer <token>`.

````