API Documentation
Integrate botbly's powerful AI chatbot capabilities directly into your applications with our comprehensive API.
Powerful, Flexible, and Easy to Use
Our API gives you programmatic access to the full power of botbly's AI chatbot platform, allowing you to create custom integrations, build your own interfaces, and extend functionality to meet your specific requirements.
// Request a chatbot response
POST https://api.botbly.com/v1/chat/completions
{
"bot_id": "bot_12345",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "What are your business hours?"
}
],
"temperature": 0.7,
"max_tokens": 150
}
// Response
{
"id": "resp_6789",
"bot_id": "bot_12345",
"created_at": "2025-04-15T14:22:34Z",
"response": "Our business hours are Monday to Friday, 9 AM to 6 PM Eastern Time. We're closed on weekends and major holidays. Is there something I can help you with during our business hours?",
"tokens_used": 42
}
Comprehensive API
Access all chatbot functionality through our RESTful API, from configuration to analytics.
Custom Configuration
Tailor chatbot behavior, appearance, and responses through simple API calls.
Developer-friendly
Well-documented endpoints with example code in multiple languages make integration simple.
Secure Authentication
Industry-standard authentication and authorization ensure your data remains secure.
Example API Usage
curl -X POST \
https://api.botbly.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"bot_id": "bot_12345",
"messages": [
{
"role": "user",
"content": "What are your business hours?"
}
]
}'
Getting Started with the API
Follow these simple steps to start integrating botbly's AI chatbot capabilities into your applications.
Create an account
Sign up for botbly and create your first AI chatbot.
Generate API keys
Access your developer dashboard to create API keys for authentication.
Make your first API call
Use our code examples to quickly implement chatbot functionality.
Customize and extend
Configure your chatbot's behavior and appearance through the API.

Ready to integrate AI chatbots into your application?
Get started with our API today and transform your customer experience with intelligent chat capabilities.