---
title: "Create a new chatbot"
method: POST
path: "/create-chatbot"
tags: ["Chatbots"]
---

# Create a new chatbot

`POST /create-chatbot`

Creates a new chatbot with training data from text

## Request body

- object
  - `chatbotName` string, required — Name of the chatbot (minimum 3 characters)
  - `sourceText` string — Raw text content to train the chatbot

## Response `200`

Chatbot created successfully

- object
  - `chatbotId` string — Unique identifier for the created chatbot

## Other responses

- `400` — Bad Request - Invalid input parameters
- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - Access denied or quota exceeded
- `500` — Internal Server Error

---

[API](https://skmtc.dev/chatbase/apis/chatbase-api-v1.md) · [All operations](https://skmtc.dev/chatbase/apis/chatbase-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chatbase/chatbase-api-v1/revisions/3a2187967746/schema)
