chatbot6
Sign in

chatbot6 API

Manage all your chatbots from your own code with a simple REST API: the same actions as the MCP server and the studio assistant, with your account key.

Your key

Sign in to see your key. A key is created automatically for every account.

Sign in

Base address

https://chatbot6.com/api/v1

Authentication

Send your key in the Authorization header. Each key can make 120 requests per minute. Add ?lang=tr (or another language code) to get links in that language.

Authorization: Bearer your_key

Endpoints

GET/chatbotsList your chatbots with status, subscribers and links.

Example

curl https://chatbot6.com/api/v1/chatbots \
  -H "Authorization: Bearer your_key"
POST/chatbotsCreate a draft chatbot. Body: name, and optionally tagline, category, instructions, greeting, locale.

Example

curl -X POST https://chatbot6.com/api/v1/chatbots \
  -H "Authorization: Bearer your_key" \
  -H "Content-Type: application/json" \
  -d '{"name":"Support bot","category":"support","locale":"en"}'
GET/chatbots/{id}Full details of a chatbot: texts, instructions, model, plans and last 30 days.

Example

curl https://chatbot6.com/api/v1/chatbots/{id} \
  -H "Authorization: Bearer your_key"
PATCH/chatbots/{id}Change only the fields you send: name, tagline, keywords, category, instructions, greeting, starters, features, color, locale, folderId.

Example

curl -X PATCH https://chatbot6.com/api/v1/chatbots/{id} \
  -H "Authorization: Bearer your_key" \
  -H "Content-Type: application/json" \
  -d '{"greeting":"Hi! How can I help?"}'
PUT/chatbots/{id}/knowledgeReplace or extend the knowledge text. Body: text and mode (replace or append).

Example

curl -X PUT https://chatbot6.com/api/v1/chatbots/{id}/knowledge \
  -H "Authorization: Bearer your_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"Opening hours: 9 to 18.","mode":"append"}'
POST/chatbots/{id}/publishPublish ({"live": true}) or take back to draft ({"live": false}).

Example

curl -X POST https://chatbot6.com/api/v1/chatbots/{id}/publish \
  -H "Authorization: Bearer your_key" \
  -H "Content-Type: application/json" \
  -d '{"live":true}'
GET/chatbots/{id}/postsBlog posts of the chatbot site with their status.

Example

curl https://chatbot6.com/api/v1/chatbots/{id}/posts \
  -H "Authorization: Bearer your_key"
POST/chatbots/{id}/postsNew blog post (title, body in Markdown, summary, publishAt, draft), or {"ai": true, "topic": "..."} to let the AI write it.

Example

curl -X POST https://chatbot6.com/api/v1/chatbots/{id}/posts \
  -H "Authorization: Bearer your_key" \
  -H "Content-Type: application/json" \
  -d '{"ai":true,"topic":"Five ways to answer customers faster"}'
PUT/chatbots/{id}/posts/{postId}Replace a blog post with a full title and body.

Example

curl -X PUT https://chatbot6.com/api/v1/chatbots/{id}/posts/{postId} \
  -H "Authorization: Bearer your_key" \
  -H "Content-Type: application/json" \
  -d '{"title":"Hello","body":"Updated text in **Markdown**."}'
DELETE/chatbots/{id}/posts/{postId}Delete a blog post.

Example

curl -X DELETE https://chatbot6.com/api/v1/chatbots/{id}/posts/{postId} \
  -H "Authorization: Bearer your_key"
GET/foldersStudio folders.

Example

curl https://chatbot6.com/api/v1/folders \
  -H "Authorization: Bearer your_key"
POST/foldersCreate a folder. Body: name.

Example

curl -X POST https://chatbot6.com/api/v1/folders \
  -H "Authorization: Bearer your_key" \
  -H "Content-Type: application/json" \
  -d '{"name":"Clients"}'
GET/statsYour numbers for the last 30 days across all chatbots.

Example

curl https://chatbot6.com/api/v1/stats \
  -H "Authorization: Bearer your_key"

Errors

Errors return {"error": "<code>"}: 401 missing or wrong key, 400 invalid input, 404 not found, 409 limit reached, 429 too many requests.

Using an AI app instead? Connect the MCP server. Each chatbot also has its own API and MCP server for its users (chat and blog). You find them on the developers page of the chatbot site.