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

# Submit feedback

> Records a positive or negative rating for a conversation, optionally targeting a specific message.



## OpenAPI

````yaml /openapi.json post /chat/feedback
openapi: 3.0.3
info:
  title: Agentic Trust API
  description: >-
    Runtime API for the Agentic Trust AI customer support platform. Use these
    endpoints to manage conversations, send messages, verify user identity, and
    collect feedback.
  version: 1.0.0
  contact:
    name: Agentic Trust Support
    email: security@agentictrust.com
servers:
  - url: https://platform.agentictrust.com/api/v1
    description: Production
security:
  - ApiKeyHeader: []
tags:
  - name: Widget
    description: Widget configuration endpoints.
  - name: Chat
    description: Conversation and message endpoints.
  - name: Identity
    description: User identity verification endpoints.
  - name: Feedback
    description: Conversation feedback endpoints.
paths:
  /chat/feedback:
    post:
      tags:
        - Feedback
      summary: Submit feedback
      description: >-
        Records a positive or negative rating for a conversation, optionally
        targeting a specific message.
      operationId: submitFeedback
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                conversationId:
                  type: string
                messageId:
                  type: string
                  description: Optional. Target a specific message.
                rating:
                  type: string
                  enum:
                    - POSITIVE
                    - NEGATIVE
                comment:
                  type: string
                  description: Optional free-text comment.
              required:
                - conversationId
                - rating
      responses:
        '200':
          description: Feedback recorded.
          content:
            application/json:
              schema:
                type: object
                properties:
                  feedback:
                    $ref: '#/components/schemas/Feedback'
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Conversation not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Feedback:
      type: object
      properties:
        id:
          type: string
        conversationId:
          type: string
        messageId:
          type: string
          nullable: true
        rating:
          type: string
          enum:
            - POSITIVE
            - NEGATIVE
        comment:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
    ValidationError:
      type: object
      properties:
        error:
          type: string
          example: Validation error
        details:
          type: array
          items:
            type: object
      required:
        - error
        - details
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key in `lum_pk_*` format. Pass via `x-api-key` header or
        `Authorization: Bearer <key>`.

````