chatbot6 API
Verwalte alle deine Chatbots aus deinem eigenen Code mit einer einfachen REST-API: dieselben Aktionen wie der MCP-Server und der Studio-Assistent, mit deinem Kontoschlüssel.
Dein Schlüssel
Melde dich an, um deinen Schlüssel zu sehen. Für jedes Konto wird automatisch ein Schlüssel erstellt.
AnmeldenBasisadresse
https://chatbot6.com/api/v1
Authentifizierung
Sende deinen Schlüssel im Authorization-Header. Jeder Schlüssel kann 120 Anfragen pro Minute stellen. Hänge ?lang=tr (oder einen anderen Sprachcode) an, um Links in dieser Sprache zu erhalten.
Authorization: Bearer your_key
Endpunkte
GET/chatbotsListet deine Chatbots mit Status, Abonnenten und Links.
Beispiel
curl https://chatbot6.com/api/v1/chatbots \ -H "Authorization: Bearer your_key"
POST/chatbotsErstellt einen Chatbot-Entwurf. Body: name, optional tagline, category, instructions, greeting, locale.
Beispiel
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}Alle Details eines Chatbots: Texte, Anweisungen, Modell, Pläne und die letzten 30 Tage.
Beispiel
curl https://chatbot6.com/api/v1/chatbots/{id} \
-H "Authorization: Bearer your_key"PATCH/chatbots/{id}Ändert nur die Felder, die du sendest: name, tagline, keywords, category, instructions, greeting, starters, features, color, locale, folderId.
Beispiel
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}/knowledgeErsetzt oder erweitert den Wissenstext. Body: text und mode (replace oder append).
Beispiel
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}/publishVeröffentlichen ({"live": true}) oder zurück zum Entwurf ({"live": false}).
Beispiel
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}/postsBlogbeiträge der Chatbot-Website mit ihrem Status.
Beispiel
curl https://chatbot6.com/api/v1/chatbots/{id}/posts \
-H "Authorization: Bearer your_key"POST/chatbots/{id}/postsNeuer Blogbeitrag (title, body in Markdown, summary, publishAt, draft) oder {"ai": true, "topic": "..."}, damit die KI ihn schreibt.
Beispiel
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}Ersetzt einen Blogbeitrag mit vollständigem Titel und Text.
Beispiel
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}Löscht einen Blogbeitrag.
Beispiel
curl -X DELETE https://chatbot6.com/api/v1/chatbots/{id}/posts/{postId} \
-H "Authorization: Bearer your_key"GET/foldersStudio-Ordner.
Beispiel
curl https://chatbot6.com/api/v1/folders \ -H "Authorization: Bearer your_key"
POST/foldersErstellt einen Ordner. Body: name.
Beispiel
curl -X POST https://chatbot6.com/api/v1/folders \
-H "Authorization: Bearer your_key" \
-H "Content-Type: application/json" \
-d '{"name":"Clients"}'GET/statsDeine Zahlen der letzten 30 Tage über alle Chatbots.
Beispiel
curl https://chatbot6.com/api/v1/stats \ -H "Authorization: Bearer your_key"
Fehler
Fehler liefern {"error": "<code>"}: 401 fehlender oder falscher Schlüssel, 400 ungültige Eingabe, 404 nicht gefunden, 409 Limit erreicht, 429 zu viele Anfragen.
Du nutzt lieber eine KI-App? Verbinde den MCP-Server. Jeder Chatbot hat außerdem eine eigene API und einen eigenen MCP-Server für seine Nutzer (Chat und Blog). Du findest sie auf der Entwicklerseite der Chatbot-Website.