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

# Add Feedback to a Specific Conversation

> Add Feedback to a Specific Conversation



## OpenAPI

````yaml openapi.json post /v1/conversations/{conversation_id}/feedback
openapi: 3.1.0
info:
  title: Trata AI API
  description: >-
    Human like conversation to answer calls, drive engagement, automate
    follow-ups & schedule bookings 24/7  with end to end integrations ensuring
    you never miss a sales enquiry.
  version: 1.0.0
servers:
  - url: https://api.trata.ai
    description: Production
  - url: http://localhost:8000
    description: Development
security: []
paths:
  /v1/conversations/{conversation_id}/feedback:
    post:
      tags:
        - Conversations
      summary: Add Feedback to a Specific Conversation
      description: Add Feedback to a Specific Conversation
      operationId: addFeedbackV1
      parameters:
        - name: conversation_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the conversation
            title: Conversation Id
          description: ID of the conversation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Comment'
            example:
              comment: Great service!
      responses:
        '200':
          description: Feedback added successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationFeedback'
              example:
                id: cfb.1234567890
                conversationId: con.1234567890
                comment: Great service!
                createdAt: '2024-01-01T00:00:00.000Z'
                createdBy: usr.1234567890
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Comment:
      properties:
        comment:
          type: string
          maxLength: 8192
          minLength: 1
          title: Comment
          description: Notes or comments to record
          example: good
        rating:
          type: integer
          maximum: 5
          minimum: 1
          title: Rating
          description: Star rating to record
          example: 5
      type: object
      required:
        - comment
        - rating
      title: Comment
    ConversationFeedback:
      properties:
        id:
          type: string
          title: Id
        orgId:
          type: string
          title: Orgid
        conversationId:
          type: string
          title: Conversationid
        feedback:
          type: string
          title: Feedback
        rating:
          type: integer
          title: Rating
        createdBy:
          type: string
          title: Createdby
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedBy:
          type: string
          title: Updatedby
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
      type: object
      title: ConversationFeedback
      description: Any feedback added to the conversation by business is managed here.
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````