API Reference
Comprehensive documentation for the ChatBotify API
Contents
Introduction
The ChatBotify API allows you to programmatically manage your chatbots, knowledge bases, and conversations. You can use the API to integrate ChatBotify with your existing systems or build custom applications on top of our platform.
All API requests should be made to the following base URL:
https://api.chatbotify.com/v1
Authentication
To authenticate with the ChatBotify API, you need to include your API key in the Authorization header of your requests:
Authorization: Bearer YOUR_API_KEY
You can generate an API key in the ChatBotify dashboard under Settings > API Keys.
Rate Limits
The ChatBotify API has the following rate limits:
- Free plan: 100 requests per minute
- Pro plan: 500 requests per minute
- Business plan: 2000 requests per minute
If you exceed the rate limit, you will receive a 429 Too Many Requests response.
Errors
The ChatBotify API uses conventional HTTP response codes to indicate the success or failure of an API request:
- 2xx: Success
- 4xx: Client error (e.g., invalid request)
- 5xx: Server error
Error responses include a JSON object with more information:
{ "error": { "code": "invalid_request", "message": "The request was invalid", "details": "The 'name' field is required" } }
Chatbots
The Chatbots API allows you to create, update, and manage your chatbots.
List Chatbots
GET /chatbots
Create Chatbot
POST /chatbots
Get Chatbot
GET /chatbots/{chatbot_id}
Update Chatbot
PUT /chatbots/{chatbot_id}
Delete Chatbot
DELETE /chatbots/{chatbot_id}
Knowledge Bases
The Knowledge Bases API allows you to manage the knowledge bases that power your chatbots.
List Knowledge Bases
GET /knowledge-bases
Create Knowledge Base
POST /knowledge-bases
Get Knowledge Base
GET /knowledge-bases/{knowledge_base_id}
Update Knowledge Base
PUT /knowledge-bases/{knowledge_base_id}
Delete Knowledge Base
DELETE /knowledge-bases/{knowledge_base_id}
Conversations
The Conversations API allows you to retrieve and manage conversations between users and your chatbots.
List Conversations
GET /chatbots/{chatbot_id}/conversations
Get Conversation
GET /chatbots/{chatbot_id}/conversations/{conversation_id}
Send Message
POST /chatbots/{chatbot_id}/conversations/{conversation_id}/messages
Analytics
The Analytics API allows you to retrieve usage and performance data for your chatbots.
Get Chatbot Analytics
GET /chatbots/{chatbot_id}/analytics
Get User Satisfaction
GET /chatbots/{chatbot_id}/analytics/satisfaction
Get Top Questions
GET /chatbots/{chatbot_id}/analytics/top-questions