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

# Request an async encrypted KB audit export



## OpenAPI

````yaml /api-reference/openapi.json post /v1/knowledge-base/audit/exports
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/knowledge-base/audit/exports:
    post:
      tags:
        - knowledge-base-audit
      summary: Request an async encrypted KB audit export
      operationId: requestKBAuditExport
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportRequest'
        required: true
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportJobResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ExportRequest:
      properties:
        export_format:
          type: string
          enum:
            - csv
            - ndjson
          title: Export Format
          default: csv
        start:
          type: string
          format: date-time
          title: Start
        end:
          type: string
          format: date-time
          title: End
        kb_ids:
          anyOf:
            - items:
                type: string
                format: uuid
              type: array
            - type: 'null'
          title: Kb Ids
        statuses:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Statuses
        actor_user_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Actor User Id
        session_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Session Id
      type: object
      required:
        - start
        - end
      title: ExportRequest
      description: POST body for an async encrypted audit export.
    ExportJobResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        status:
          type: string
          title: Status
        export_format:
          type: string
          title: Export Format
        window_start:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Window Start
        window_end:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Window End
        created_at:
          type: string
          format: date-time
          title: Created At
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        finalized_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Finalized At
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        total_rows:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Rows
        partial_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Partial Count
        failed_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Failed Count
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
        filters:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Filters
        files:
          items:
            $ref: '#/components/schemas/ExportFileStatus'
          type: array
          title: Files
          default: []
      type: object
      required:
        - id
        - status
        - export_format
        - created_at
      title: ExportJobResponse
      description: Status view of an export job (with per-file download tokens when ready).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExportFileStatus:
      properties:
        name:
          type: string
          title: Name
        sha256_plaintext:
          anyOf:
            - type: string
            - type: 'null'
          title: Sha256 Plaintext
        download_token:
          anyOf:
            - type: string
            - type: 'null'
          title: Download Token
      type: object
      required:
        - name
      title: ExportFileStatus
      description: Per-file status; ``download_token`` is present only when downloadable.
    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

````