Bots

List Bots

Retrieve a list of bots

get
/v1/bot/list

Authorization

ChatBotKit API Secret * Required

HTTP Authorization Scheme: bearer

Path Parameters

cursorstring

The cursor to use for pagination

orderstring

The order of the paginated items

takeinteger

The number of items to retrieve

import { ChatBotKit } from '@chatbotkit/sdk'

const cbk = new ChatBotKit({

secret: process.env.CHATBOTKIT_API_KEY!

})

const response = await cbk.bot.list(

)
{
"items":[
{
"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 list of bots was retrieved successfully