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

# Approve a document's pending classification



## OpenAPI

````yaml /api-reference/openapi.json post /v1/knowledge-base/documents/{doc_id}/classification/approve
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/documents/{doc_id}/classification/approve:
    post:
      tags:
        - knowledge-base
      summary: Approve a document's pending classification
      operationId: approveDocumentClassification
      parameters:
        - name: doc_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Doc Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClassificationApprove'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ClassificationApprove:
      properties:
        sensitivity:
          anyOf:
            - type: string
              enum:
                - public
                - internal
                - confidential
                - restricted
            - type: 'null'
          title: Sensitivity
        reason:
          anyOf:
            - type: string
              maxLength: 1000
            - type: 'null'
          title: Reason
      additionalProperties: false
      type: object
      title: ClassificationApprove
      description: >-
        Request body for POST /documents/{doc_id}/classification/approve
        (ENG-647).


        Approving with no ``sensitivity`` confirms the document's current
        effective

        label and clears the review flag
        (``pending_review``/``pending_unsearchable``

        → ``active``). Supplying ``sensitivity`` re-labels the document on
        approval,

        subject to the same anti-escalation as the PATCH endpoint (a LOWER needs

        ``org:manage``). ``reason`` is recorded on the classification audit
        event.
    ClassificationResponse:
      properties:
        document_id:
          type: string
          format: uuid
          title: Document Id
        sensitivity:
          type: string
          title: Sensitivity
        sensitivity_level:
          type: integer
          title: Sensitivity Level
        classification_source:
          anyOf:
            - type: string
            - type: 'null'
          title: Classification Source
        classification_status:
          type: string
          title: Classification Status
        classification_confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Classification Confidence
        classified_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Classified At
        classified_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Classified By
        manual_override_floor:
          anyOf:
            - type: integer
            - type: 'null'
          title: Manual Override Floor
        manual_lower_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Manual Lower Hash
        visibility_mode:
          type: string
          title: Visibility Mode
        audience_tags:
          items:
            type: string
          type: array
          title: Audience Tags
        detected_sensitivity:
          anyOf:
            - type: string
            - type: 'null'
          title: Detected Sensitivity
      type: object
      required:
        - document_id
        - sensitivity
        - sensitivity_level
        - classification_source
        - classification_status
        - classification_confidence
        - classified_at
        - classified_by
        - manual_override_floor
        - manual_lower_hash
        - visibility_mode
        - audience_tags
      title: ClassificationResponse
      description: >-
        Current classification of a document.


        Built explicitly (not ``from_attributes``) because ``document_id`` maps
        to

        ``Document.id`` and ``detected_sensitivity`` comes from the active
        version.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    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

````