Datasets
List Datasets
Retrieve a list of datasets
get
/v1/dataset/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.dataset.list(
)
{"items":[{"name":"string","description":"string","meta":"object","id":"string","createdAt":"number","updatedAt":"number","store":"string","reranker":"string","recordMaxTokens":"number","searchMinScore":"number","searchMaxRecords":"number","searchMaxTokens":"number","matchInstruction":"string","mismatchInstruction":"string","separators":"string","visibility":"string"}]}
The list of datasets was retrieved successfully