Skip to main content
PATCH
/
api
/
v2
/
agents
/
{agentId}
/
conversations
/
{conversationId}
/
messages
/
{messageId}
/
feedback
Update message feedback
curl --request PATCH \
  --url https://www.chatbase.co/api/v2/api/v2/agents/{agentId}/conversations/{conversationId}/messages/{messageId}/feedback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "feedback": "positive"
}
'
{
  "data": {
    "id": "<string>",
    "role": "user",
    "parts": [
      {
        "type": "text",
        "text": "<string>"
      }
    ],
    "createdAt": 123,
    "feedback": "positive",
    "metadata": {
      "score": 123
    }
  }
}

Authorizations

Authorization
string
header
required

API key from your account settings

Path Parameters

agentId
string
required

The agent ID

Minimum string length: 1
Example:

"5QHA6VB-DIAbBhxwqxfdi"

conversationId
string
required

The conversation ID

Minimum string length: 1
Example:

"a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d"

messageId
string
required

The message ID

Minimum string length: 1

Body

application/json
feedback
enum<string> | null
required

Set feedback: "positive", "negative", or null to clear

Available options:
positive,
negative,
null

Response

Updated message with feedback

data
object
required