Bots
Fetch Bot
Fetch a bot
get
/v1/bot/{botId}/fetch
Authorization
ChatBotKit API Secret * Required
HTTP Authorization Scheme: bearer
Path Parameters
botIdstring* Required
The ID of the bot to retrieve
import { ChatBotKit } from '@chatbotkit/sdk'
const cbk = new ChatBotKit({
secret: process.env.CHATBOTKIT_API_KEY!
})
const response = await cbk.bot.fetch(
botId)
{"name":"string","description":"string","meta":"object","id":"string","createdAt":"number","updatedAt":"number","model":"string","backstory":"string","datasetId":"string","skillsetId":"string","privacy":"boolean","moderation":"boolean","visibility":"string"}
The bot was retrieved successfully