chatbot6
ログイン

chatbot6 API

シンプルなREST APIで、自分のコードからすべてのチャットボットを管理できます。MCPサーバーやスタジオアシスタントと同じ操作を、アカウントキーで実行できます。

あなたのキー

ログインするとキーが表示されます。キーはすべてのアカウントに自動で作成されます。

ログイン

ベースアドレス

https://chatbot6.com/api/v1

認証

Authorizationヘッダーでキーを送信します。各キーは1分あたり120リクエストまで送れます。?lang=tr(または別の言語コード)を追加すると、その言語のリンクが返されます。

Authorization: Bearer your_key

エンドポイント

GET/chatbotsステータス、購読者、リンク付きでチャットボットを一覧表示します。

例

curl https://chatbot6.com/api/v1/chatbots \
  -H "Authorization: Bearer your_key"
POST/chatbots下書きのチャットボットを作成します。本文: name、任意で tagline、category、instructions、greeting、locale。

例

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}チャットボットの詳細: テキスト、指示、モデル、プラン、過去30日間。

例

curl https://chatbot6.com/api/v1/chatbots/{id} \
  -H "Authorization: Bearer your_key"
PATCH/chatbots/{id}送信したフィールドだけを変更します: name、tagline、keywords、category、instructions、greeting、starters、features、color、locale、folderId。

例

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}/knowledgeナレッジのテキストを置き換えるか追加します。本文: text と mode(replace または append)。

例

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}/publish公開({"live": true})または下書きに戻す({"live": false})。

例

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}/postsチャットボットサイトのブログ記事とそのステータス。

例

curl https://chatbot6.com/api/v1/chatbots/{id}/posts \
  -H "Authorization: Bearer your_key"
POST/chatbots/{id}/posts新しいブログ記事(title、Markdownの body、summary、publishAt、draft)。AIに書かせる場合は {"ai": true, "topic": "..."}。

例

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}タイトルと本文全体でブログ記事を置き換えます。

例

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}ブログ記事を削除します。

例

curl -X DELETE https://chatbot6.com/api/v1/chatbots/{id}/posts/{postId} \
  -H "Authorization: Bearer your_key"
GET/foldersスタジオのフォルダ。

例

curl https://chatbot6.com/api/v1/folders \
  -H "Authorization: Bearer your_key"
POST/foldersフォルダを作成します。本文: name。

例

curl -X POST https://chatbot6.com/api/v1/folders \
  -H "Authorization: Bearer your_key" \
  -H "Content-Type: application/json" \
  -d '{"name":"Clients"}'
GET/statsすべてのチャットボットの過去30日間の数値。

例

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

エラー

エラーは {"error": "<code>"} を返します: 401 キーがないか間違っている、400 入力が無効、404 見つからない、409 上限に到達、429 リクエストが多すぎる。

AIアプリを使いますか? MCPサーバーに接続してください。 各チャットボットには、ユーザー向け(チャットとブログ)の独自のAPIとMCPサーバーもあります。チャットボットサイトの開発者ページで確認できます。