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

# Submit feedback for a chat message

> Submits feedback (positive/negative) for a specific message in a chat conversation. If feedback already exists for the message, it will be updated.



## OpenAPI

````yaml POST /v1/assistants/{identifier}/chats/{chatUid}/feedback
openapi: 3.0.0
info:
  title: Devic.ai Public API
  description: >-
    Devic.ai is an AI platform that allows you to create, manage, and use AI
    agents for various tasks.
  version: 1.0.0
  contact:
    name: Devic.ai Support
    url: https://devic.ai
  x-logo:
    url: https://devic.ai/logo.png
    altText: Devic.ai Logo
  x-summary: Public API for interacting with Devic.ai platform
servers:
  - url: https://api.devic.ai
    description: Production server
  - url: https://staging-api.devic.ai
    description: Staging server
security:
  - bearerAuth: []
tags:
  - name: Projects
    description: Group agents, assistants, documents and costs into projects
  - name: Documents
    description: >-
      Knowledge base documents: create, version, attach and index markdown
      content for RAG
  - name: Document Folders
    description: Organise knowledge base documents into folders and attach them in bulk
  - name: Files
    description: Upload files and obtain shareable download URLs to attach to messages
  - name: Agents
    description: Endpoints related to AI agents and their operations
  - name: Assistants
    description: Endpoints for interacting with assistants and their specializations
  - name: Tool Servers
    description: Endpoints for managing tool servers and their tool definitions
  - name: Health
    description: API health check endpoints
  - name: Documentation
    description: Endpoints for retrieving markdown documentation
  - name: Integrations
    description: Connect third-party apps and turn them into tools
  - name: Triggers
    description: Start an agent or an assistant from an app event
  - name: Tenant Integrations
    description: Apps that each end user connects for themselves
  - name: Memory
    description: What an assistant remembers between conversations
  - name: Skills
    description: Reusable instruction packs for agents and assistants
  - name: Speech to Text
    description: Audio transcription
  - name: Tenants
    description: Tenants, subtenants and their usage
  - name: MCP Gateway
    description: One MCP endpoint over many servers, with visibility per user
  - name: Tenant Sessions
    description: Tokens that prove which end user is calling
paths:
  /v1/assistants/{identifier}/chats/{chatUid}/feedback:
    post:
      tags:
        - Assistants
      summary: Submit feedback for a chat message
      description: >-
        Submits feedback (positive/negative) for a specific message in a chat
        conversation. If feedback already exists for the message, it will be
        updated.
      operationId: submitChatFeedback
      parameters:
        - name: identifier
          required: true
          in: path
          description: The unique identifier of the assistant specialization
          schema:
            type: string
        - name: chatUid
          required: true
          in: path
          description: The unique identifier of the chat conversation
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitChatFeedbackDto'
      responses:
        '200':
          description: Feedback submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FeedbackResponseDto'
        '401':
          description: Unauthorized - Invalid or missing token
        '404':
          description: Chat history not found
        '429':
          description: Too Many Requests - Rate limit exceeded
        '500':
          description: Internal Server Error
      security:
        - bearerAuth: []
components:
  schemas:
    SubmitChatFeedbackDto:
      type: object
      properties: {}
    FeedbackResponseDto:
      type: object
      properties:
        _id:
          type: string
          example: 64f5a5b8c123456789abcdef
        requestId:
          type: string
          example: msg-123456
        chatUID:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        threadId:
          type: string
          example: 64f5a5b8c123456789abcdef
        feedback:
          type: boolean
          example: true
        feedbackComment:
          type: string
          example: This was very helpful!
        feedbackData:
          type: object
        creationTimestamp:
          type: string
          example: '2024-01-15T10:30:00.000Z'
        lastEditTimestamp:
          type: string
          example: '2024-01-15T11:00:00.000Z'
      required:
        - _id
        - requestId
        - feedback
        - creationTimestamp
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Use JWT token for authentication

````