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

# Public Export Kb

> Export a knowledge base.

Returns an export file (v4 plaintext YAML by default, v3 base64 on request)
that can be imported later.
Note: KBs larger than 15MB are exported without their documents (metadata
and settings only); the response is ``206 Partial Content`` and carries an
``X-Export-Warning`` header.



## OpenAPI

````yaml post /v1/knowledge-bases/{knowledge_base_id}/export
openapi: 3.1.0
info:
  title: Noxus Backend
  description: >-
    Backend API for the Noxus Platform. More information can be found at
    https://docs.noxus.ai
  version: 1.1.0
servers: []
security: []
paths:
  /v1/knowledge-bases/{knowledge_base_id}/export:
    post:
      tags:
        - V1 - Knowledge Bases
      summary: Public Export Kb
      description: >-
        Export a knowledge base.


        Returns an export file (v4 plaintext YAML by default, v3 base64 on
        request)

        that can be imported later.

        Note: KBs larger than 15MB are exported without their documents
        (metadata

        and settings only); the response is ``206 Partial Content`` and carries
        an

        ``X-Export-Warning`` header.
      operationId: public_export_kb
      parameters:
        - name: knowledge_base_id
          in: path
          required: true
          schema:
            type: string
            title: Knowledge Base Id
        - name: version
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ExportFormat'
            description: >-
              Export wire format. `auto` (default) emits the legacy
              base64-encoded bundle for back-compat; pass `v4` for plaintext
              multi-doc YAML (`.nx`), or `v3` for base64 explicitly.
            default: auto
          description: >-
            Export wire format. `auto` (default) emits the legacy base64-encoded
            bundle for back-compat; pass `v4` for plaintext multi-doc YAML
            (`.nx`), or `v3` for base64 explicitly.
        - name: set_active_on_import
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Set Active On Import
      responses:
        '200':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ExportFormat:
      type: string
      enum:
        - auto
        - v3
        - v4
      title: ExportFormat
      description: >-
        Wire format for an export/import payload.


        - ``auto`` (default both directions): export emits the default format
          (currently ``v3`` base64, for back-compat with existing pipelines); import
          detects the format from the payload content.
        - ``v4``: plaintext multi-doc YAML (`.nx`) — opt-in, requested on
        purpose.

        - ``v3``: legacy base64-encoded bundle.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````