Skip to main content
POST
/
messages
/
{id}
/
feedback
Create Message Feedback
curl --request POST \
  --url https://api.pal.ai/v1/messages/{id}/feedback \
  --header 'Content-Type: application/json' \
  --data '"thumbsUp"'
{
  "id": "<string>",
  "content": "<string>",
  "role": "user",
  "type": "<string>",
  "parentMessageId": "<string>",
  "searchResultSet": {
    "documents": [
      {
        "id": "<string>",
        "title": "<string>",
        "contentPreview": "<string>",
        "url": "<string>"
      }
    ],
    "sections": [
      {
        "id": "<string>",
        "applicationId": "<string>",
        "heading": "<string>",
        "text": "<string>",
        "documentId": "<string>",
        "indexOrder": "<string>",
        "indexId": "<string>",
        "indexName": "<string>",
        "indexInfo": "<string>",
        "deletedAt": "<string>",
        "updatedAt": "<string>",
        "createdAt": "<string>"
      }
    ]
  },
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "deletedAt": "<string>",
  "conversationId": "<string>",
  "feedback": "thumbsUp",
  "": "<string>"
}

Path Parameters

id
string
required

The message ID the feedback belongs to.

Body

application/json
rating
enum<string>
required
Available options:
thumbsUp,
thumbsDown
content
object

Response

OK

id
string
content
string
role
enum<string>
Available options:
user,
system,
assistant
type
string
parentMessageId
string | null
searchResultSet
SearchResults · object
createdAt
string
updatedAt
string
deletedAt
string | null
conversationId
string
feedback
MessageFeedback · object
string