v1

latestOpenAPI 3.0.32026-07-24106305257.4 KB
Ratings

Create a rating

Create a new rating of agent message for specific chat

post/agents/{agentId}/chat/{chatId}/ratings

Path parameters

agentIdstring required

Agent Id

chatIdstring required

Id of chat where the message will rated

Request body

scorenumber double required

The rating score: positive for favorable, negative for unfavorable

knowledge_idstring required

The ID of the agent's knowledge

message_idstring

The ID of the message to rate

Example request

{
  "score": 1
}

Response

OK

agent_idstring required

The ID of the agent

knowledge_idstring required

The ID of the agent's knowledge

external_idstring required

An external identifier

message_idstring

The ID of the message to rate

chat_idstring required

The ID of the chat containing the message

scorenumber double required

The rating score: positive for favorable, negative for unfavorable

idstring required
owner_idstring required
created_atstring required
modified_atstring required

Example response

{
  "score": 1
}