Integrate AI intelligence into any application. Complete REST API, real-time webhooks, SDKs, and detailed documentation.
Full programmatic access to all platform features. Build, automate, and scale without limits.
Create and configure chatbots programmatically. Set personality, colors, welcome messages, and behavior rules via API.
Access the complete conversation history, read individual messages, and export data for external analysis.
Import, update, and delete data from the knowledge base. Upload documents, URLs, or Q&A pairs programmatically.
Receive real-time notifications for every event: new message, lead captured, conversation ended, errors, and more.
Customize the widget appearance and behavior from code. Colors, position, avatar, messages, and display rules.
Export detailed metrics and reports. Conversations, leads, resolution rates, response times, and trends.
Complete code examples in your preferred language. Copy, paste, and you're ready.
# Create a new chatbot curl -X POST https://api.allai.ro/v1/chatbots \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Online Store Assistant", "language": "en", "personality": "friendly", "welcome_message": "Hello! How can I help you?" }' # Response (201 Created) { "id": "cb_9f8a7b6c5d4e", "name": "Online Store Assistant", "status": "active", "api_key": "sk_live_...", "created_at": "2026-02-23T10:30:00Z" }
import allai # Initialize the client client = allai.Client(api_key="YOUR_API_KEY") # Create a new chatbot chatbot = client.chatbots.create( name="Online Store Assistant", language="en", personality="friendly", welcome_message="Hello! How can I help you?" ) print(f"Chatbot created: {chatbot.id}") # Output: Chatbot created: cb_9f8a7b6c5d4e
import AllAI from 'allai-sdk'; // Initialize the client const client = new AllAI('YOUR_API_KEY'); // Create a new chatbot const chatbot = await client.chatbots.create({ name: 'Online Store Assistant', language: 'en', personality: 'friendly', welcomeMessage: 'Hello! How can I help you?' }); console.log(`Chatbot created: ${chatbot.id}`); // Output: Chatbot created: cb_9f8a7b6c5d4e
use AllAI\Client; // Initialize the client $client = new Client('YOUR_API_KEY'); // Create a new chatbot $chatbot = $client->chatbots->create([ 'name' => 'Online Store Assistant', 'language' => 'en', 'personality' => 'friendly', 'welcome_message' => 'Hello! How can I help you?', ]); echo "Chatbot created: " . $chatbot->id; // Output: Chatbot created: cb_9f8a7b6c5d4e
Here are the most commonly used endpoints. The complete documentation contains over 50 endpoints with detailed examples.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/chatbots | Create new chatbot |
| GET | /api/v1/chatbots | List all chatbots |
| GET | /api/v1/chatbots/{id}/conversations | Chatbot conversations |
| POST | /api/v1/chatbots/{id}/knowledge | Add to knowledge base |
| GET | /api/v1/analytics/overview | General statistics |
| POST | /api/v1/webhooks | Register webhook |
| PUT | /api/v1/chatbots/{id}/settings | Update chatbot settings |
| DELETE | /api/v1/chatbots/{id}/knowledge/{docId} | Delete document from knowledge base |
All endpoints use Bearer Token authentication. Rate limiting: depends on chosen plan.
Officially maintained SDKs that abstract API complexity. Install with a single command.
npm install allai-sdk
Stable v2.1pip install allai
Stable v1.8composer require allai/sdk
Stable v1.5gem install allai
Beta v0.9go get allai.ro/sdk
Coming SoonStart free and scale as you grow. No hidden fees, no long-term contracts.
Perfect for testing and prototyping
For projects in development
For production applications
For your volume and requirements
Quick answers to the most common questions about AllAI API.
Get your API key in 30 seconds. Complete documentation, SDKs, and dedicated developer support.