Bots
Upvote Bot
Upvote a bot
post
/v1/bot/{botId}/upvote
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
botIdstring* Required
The ID of the bot
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.bot.upvote(
botId,{)}"value":"integer"
{"id":"string"}
The bot was upvoted successfully