Conversation Messages
Upvote Conversation Message
Upvote conversation message
post
/v1/conversation/{conversationId}/message/{messageId}/upvote
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
conversationIdstring* Required
The ID of the conversation
messageIdstring* Required
The ID of the message
Request Body * Required
Request Body Schema: application/json
valueinteger
The value of the upvote
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.conversation.message.upvote(
conversationId, messageId,{)}"value":"integer"
{"id":"string"}
The message was upvoted successfully