Bots

Delete Bot

Delete a bot

post
/v1/bot/{botId}/delete

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

botIdstring* Required

The ID of the bot to delete

Request Body * Required

Request Body Schema: application/json

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.bot.delete(

botId,
{}
)
{
"id":"string"
}
The bot was deleted successfully