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

# Post Message Feedback by Id

> Adds feedback to a message.



## OpenAPI

````yaml POST /messages/{id}/feedback
openapi: 3.1.0
info:
  title: HeyPal API
  version: '1.0'
  description: >-
    The HeyPal API makes it easy to add A.I. powered semantic-search & other
    A.I. functionality to your product & content.
servers:
  - url: https://api.pal.ai/v1
security:
  - API Key: []
paths:
  /messages/{id}/feedback:
    parameters:
      - schema:
          type: string
        name: id
        in: path
        required: true
        description: The message ID the feedback belongs to.
    post:
      summary: Create Message Feedback
      description: Adds feedback to a message.
      operationId: post-messages-id-feedback
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessageFeedback'
        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversationMessage'
        '422':
          description: Message already has feedback
components:
  schemas:
    MessageFeedback:
      title: MessageFeedback
      x-stoplight:
        id: 2gbm38i8m4l54
      type: object
      enum:
        - thumbsUp
        - thumbsDown
      properties:
        rating:
          type: string
          x-stoplight:
            id: 0jwprr47l1ni0
          enum:
            - thumbsUp
            - thumbsDown
        content:
          type: object
          x-stoplight:
            id: setrdq09uj9s9
          properties:
            text:
              type: string
              x-stoplight:
                id: gbsjuy09ewr0y
              description: Textual feedback. May be empty.
          required:
            - text
      required:
        - rating
      x-internal: false
    ConversationMessage:
      title: ConversationMessage
      x-stoplight:
        id: l2qqhd6oifjdu
      type: object
      properties:
        id:
          type: string
        content:
          type: string
          x-stoplight:
            id: 0325wkuxemfth
        role:
          type: string
          x-stoplight:
            id: euesva5i3tl80
          enum:
            - user
            - system
            - assistant
        type:
          type: string
          x-stoplight:
            id: bw5mg5q3el291
        parentMessageId:
          type:
            - string
            - 'null'
          x-stoplight:
            id: z00179zainrrd
        searchResultSet:
          $ref: '#/components/schemas/SearchResults'
          x-stoplight:
            id: 3wpyew8z68z1h
        createdAt:
          type: string
          x-stoplight:
            id: 05mk48gpinyjc
        updatedAt:
          type: string
          x-stoplight:
            id: sov24wo1hayg8
        deletedAt:
          type:
            - string
            - 'null'
          x-stoplight:
            id: s0o6yevj5brge
        conversationId:
          type: string
          x-stoplight:
            id: 73fbvgg6mhsid
        feedback:
          $ref: '#/components/schemas/MessageFeedback'
          x-stoplight:
            id: tzhy6jped1zuj
        '':
          type: string
          x-stoplight:
            id: 4d3ehxm7xkhho
    SearchResults:
      title: SearchResults
      x-stoplight:
        id: 8ru9mlevhbb5a
      type: object
      properties:
        documents:
          x-stoplight:
            id: a6hm8esk8vbu6
          type: array
          items:
            $ref: '#/components/schemas/SearchResultDocument'
            x-stoplight:
              id: q7awucxjehpxc
        sections:
          x-stoplight:
            id: djy5szi7gar58
          type: array
          items:
            $ref: '#/components/schemas/SearchResultSection'
            x-stoplight:
              id: 8epjxbwwli6c0
    SearchResultDocument:
      title: SearchResultDocument
      x-stoplight:
        id: tedvaboygvsz3
      type: object
      properties:
        id:
          type: string
        title:
          type: string
          x-stoplight:
            id: szfb41o346s8j
        url:
          type: string
          x-stoplight:
            id: twz4ofljy43vm
        contentPreview:
          type: string
          x-stoplight:
            id: smvofz5kercly
      required:
        - id
        - title
        - contentPreview
    SearchResultSection:
      title: SearchResultSection
      x-stoplight:
        id: 40kaw83usyn3x
      type: object
      properties:
        id:
          type: string
        applicationId:
          type: string
          x-stoplight:
            id: 1hf86daam0v0v
        heading:
          type: string
          x-stoplight:
            id: yocswro10mueg
        text:
          type: string
          x-stoplight:
            id: k0xka7fthms8p
        documentId:
          type: string
          x-stoplight:
            id: libpxrvo8dr98
        indexOrder:
          type: string
          x-stoplight:
            id: unc8se3x8631p
        indexId:
          type: string
          x-stoplight:
            id: nmb2ghiaab592
        indexName:
          type: string
          x-stoplight:
            id: 7ut3j1bx5d29i
        indexInfo:
          type: string
          x-stoplight:
            id: s3mpr2hvaopm3
        deletedAt:
          type: string
          x-stoplight:
            id: amaxct5n3t92s
        updatedAt:
          type: string
          x-stoplight:
            id: bbef3z6fhqekq
        createdAt:
          type: string
          x-stoplight:
            id: rc91811wlffd7

````