---
title: "Create dataset"
method: POST
path: "/dataset/create"
tags: ["Dataset"]
---

# Create dataset

`POST /dataset/create`

## Request

- Base URL: `https://api.chatbotkit.com/api/v1`
- URL: `https://api.chatbotkit.com/api/v1/dataset/create`
- Auth: HTTP bearer

## Request body

- object: Blueprint properties
  - `alias` string, nullable: The unique alias for the instance
  - `name` string: The associated name
  - `description` string: The associated description
  - `meta` Meta: Meta data information
  - `blueprintId` string, nullable: The ID of the blueprint
  - `reranker` string: The reranker class for the dataset
  - `recordMaxTokens` number: The total number of tokens for each record
  - `searchMinScore` number: The minimum score to filter search results by
  - `searchMaxRecords` number: The total number of records to return during search
  - `searchMaxTokens` number: The total number of tokens to use during search
  - `matchInstruction` string: An instruction to include before found records
  - `mismatchInstruction` string: An instruction to include if no records where found
  - `separators` string: A list of separators to use when tokenizing text
  - `visibility` 'private' | 'protected' | 'public': The dataset visibility

## Response `200`

The dataset was created successfully

- object
  - `id` string, required: The ID of the created dataset

## Other responses

- `default`: An error response

---

[API](https://skmtc.dev/chatbotkit/apis/cbk-api.md) · [All operations](https://skmtc.dev/chatbotkit/apis/cbk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatbotkit/apis/cbk-api/revisions/13d250576136?raw)
