Feedback

List all chat message feedbacks for a chatflow

Retrieve all feedbacks for a chatflow

get

/feedback/{id}

Authorizations
Path parameters
idstringrequired

Chatflow ID

Query parameters
chatIdstring

Chat ID to filter feedbacks (optional)

sortOrderstring · enum · default: asc

Sort order of feedbacks (optional)

Options: asc, desc
startDatestring · date-time

Filter feedbacks starting from this date (optional)

endDatestring · date-time

Filter feedbacks up to this date (optional)

Responses
curl -L \
  --url '/feedback/{id}' \
  --header 'Authorization: Bearer JWT'
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "chatflowid": "123e4567-e89b-12d3-a456-426614174000",
    "chatId": "text",
    "messageId": "123e4567-e89b-12d3-a456-426614174000",
    "content": "text",
    "createdDate": "2025-02-28T18:30:43.656Z",
    "rating": "THUMBS_UP"
  }
]

Create new chat message feedback

Create new feedback for a specific chat flow.

post

/feedback

Authorizations
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

contentstring

Feedback content

createdDatestring · date-time

Date and time when the feedback was created

ratingstring · enum

Rating for the message

Options: THUMBS_UP, THUMBS_DOWN
Responses
curl -L \
  --request POST \
  --url '/feedback' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: application/json' \
  --data '{
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "chatflowid": "123e4567-e89b-12d3-a456-426614174000",
    "chatId": "text",
    "messageId": "123e4567-e89b-12d3-a456-426614174000",
    "content": "text",
    "createdDate": "2025-02-28T18:30:43.656Z",
    "rating": "THUMBS_UP"
  }'

No body

Update chat message feedback

Update a specific feedback

put

/feedback/{id}

Authorizations
Path parameters
idstringrequired

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

contentstring

Feedback content

createdDatestring · date-time

Date and time when the feedback was created

ratingstring · enum

Rating for the message

Options: THUMBS_UP, THUMBS_DOWN
Responses
curl -L \
  --request PUT \
  --url '/feedback/{id}' \
  --header 'Authorization: Bearer JWT' \
  --header 'Content-Type: application/json' \
  --data '{
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "chatflowid": "123e4567-e89b-12d3-a456-426614174000",
    "chatId": "text",
    "messageId": "123e4567-e89b-12d3-a456-426614174000",
    "content": "text",
    "createdDate": "2025-02-28T18:30:43.656Z",
    "rating": "THUMBS_UP"
  }'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "chatflowid": "123e4567-e89b-12d3-a456-426614174000",
  "chatId": "text",
  "messageId": "123e4567-e89b-12d3-a456-426614174000",
  "content": "text",
  "createdDate": "2025-02-28T18:30:43.656Z",
  "rating": "THUMBS_UP"
}

Last updated