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

# Submit Feedback

> Submit user feedback (thumbs up/down) on product enrichment quality.

**Authentication Required**: Requires `product:write` permission.

Feedback is recorded as a Langfuse score linked to the enrichment trace.
This enables evaluation of LLM-generated content quality over time.



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/products/{key}/{source}/feedback
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/products/{key}/{source}/feedback:
    post:
      tags:
        - Products
      summary: Submit Feedback
      description: |-
        Submit user feedback (thumbs up/down) on product enrichment quality.

        **Authentication Required**: Requires `product:write` permission.

        Feedback is recorded as a Langfuse score linked to the enrichment trace.
        This enables evaluation of LLM-generated content quality over time.
      operationId: submit_feedback
      parameters:
        - in: path
          name: key
          required: true
          schema:
            title: Key
            type: string
        - in: path
          name: source
          required: true
          schema:
            title: Source
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FeedbackRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    FeedbackRequest:
      description: Request model for submitting user feedback on enrichment quality.
      properties:
        comment:
          anyOf:
            - type: string
            - type: 'null'
          description: Optional comment explaining the feedback
          title: Comment
        field:
          anyOf:
            - type: string
            - type: 'null'
          default: global
          description: >-
            Field being evaluated: 'global' for overall quality, or property key
            for specific field
          title: Field
        score:
          description: 'Feedback score: 1 = thumbs up (positive), 0 = thumbs down (negative)'
          enum:
            - 0
            - 1
          title: Score
          type: integer
        version:
          anyOf:
            - type: integer
            - type: 'null'
          description: Version number of the product being evaluated
          title: Version
      required:
        - score
      title: FeedbackRequest
      type: object
    FeedbackResponse:
      description: Response model for feedback submission.
      properties:
        message:
          description: Status message
          title: Message
          type: string
        score_id:
          description: Langfuse score ID for reference
          title: Score Id
          type: string
        success:
          description: Whether feedback was submitted successfully
          title: Success
          type: boolean
      required:
        - success
        - score_id
        - message
      title: FeedbackResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````