Feedback

List all chat message feedbacks for a chatflow

Retrieve all feedbacks for a chatflow

GET/feedback/{id}
Authorization
Path parameters
id*string

Chatflow ID

Query parameters
Response

Successful operation

Body
idstring (uuid)

Unique identifier for the feedback

chatflowidstring (uuid)

Identifier for the chat flow

chatIdstring

Identifier for the chat

messageIdstring (uuid)

Identifier for the message

ratingenum

Rating for the message

THUMBS_UPTHUMBS_DOWN
contentstring

Feedback content

createdDatestring (date-time)

Date and time when the feedback was created

Request
const response = await fetch('/feedback/{id}', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer JWT"
    },
});
const data = await response.json();
Response
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "chatflowid": "123e4567-e89b-12d3-a456-426614174000",
    "chatId": "text",
    "messageId": "123e4567-e89b-12d3-a456-426614174000",
    "rating": "THUMBS_UP",
    "content": "text",
    "createdDate": "2024-09-10T10:56:47.924Z"
  }
]

Create new chat message feedback

Create new feedback for a specific chat flow.

POST/feedback
Authorization
Body
idstring (uuid)

Unique identifier for the feedback

chatflowidstring (uuid)

Identifier for the chat flow

chatIdstring

Identifier for the chat

messageIdstring (uuid)

Identifier for the message

ratingenum

Rating for the message

THUMBS_UPTHUMBS_DOWN
contentstring

Feedback content

createdDatestring (date-time)

Date and time when the feedback was created

Response

Feedback successfully created

Request
const response = await fetch('/feedback', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer JWT",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();

Update chat message feedback

Update a specific feedback

PUT/feedback/{id}
Authorization
Path parameters
id*string

Chat Message Feedback ID

Body
idstring (uuid)

Unique identifier for the feedback

chatflowidstring (uuid)

Identifier for the chat flow

chatIdstring

Identifier for the chat

messageIdstring (uuid)

Identifier for the message

ratingenum

Rating for the message

THUMBS_UPTHUMBS_DOWN
contentstring

Feedback content

createdDatestring (date-time)

Date and time when the feedback was created

Response

Feedback successfully updated

Body
idstring (uuid)

Unique identifier for the feedback

chatflowidstring (uuid)

Identifier for the chat flow

chatIdstring

Identifier for the chat

messageIdstring (uuid)

Identifier for the message

ratingenum

Rating for the message

THUMBS_UPTHUMBS_DOWN
contentstring

Feedback content

createdDatestring (date-time)

Date and time when the feedback was created

Request
const response = await fetch('/feedback/{id}', {
    method: 'PUT',
    headers: {
      "Authorization": "Bearer JWT",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "chatflowid": "123e4567-e89b-12d3-a456-426614174000",
  "chatId": "text",
  "messageId": "123e4567-e89b-12d3-a456-426614174000",
  "rating": "THUMBS_UP",
  "content": "text",
  "createdDate": "2024-09-10T10:56:47.924Z"
}

Last updated