REST API v1

Build with
AllAI API

Integrate AI intelligence into any application. Complete REST API, real-time webhooks, SDKs, and detailed documentation.

99.9%Uptime
< 200msLatency
50+Endpoints
5SDKs
API Capabilities

What you can do with AllAI API

Full programmatic access to all platform features. Build, automate, and scale without limits.

Create Chatbots

Create and configure chatbots programmatically. Set personality, colors, welcome messages, and behavior rules via API.

Manage Conversations

Access the complete conversation history, read individual messages, and export data for external analysis.

Knowledge Base

Import, update, and delete data from the knowledge base. Upload documents, URLs, or Q&A pairs programmatically.

Webhooks

Receive real-time notifications for every event: new message, lead captured, conversation ended, errors, and more.

Widget Customization

Customize the widget appearance and behavior from code. Colors, position, avatar, messages, and display rules.

Analytics & Reports

Export detailed metrics and reports. Conversations, leads, resolution rates, response times, and trends.

Code Examples

Integrate in minutes, not days

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
Endpoints

Main endpoints

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.

SDKs & Libraries

Official libraries for any language

Officially maintained SDKs that abstract API complexity. Install with a single command.

JS

JavaScript / Node.js

npm install allai-sdk

Stable v2.1
Py

Python

pip install allai

Stable v1.8
PHP

PHP

composer require allai/sdk

Stable v1.5
Rb

Ruby

gem install allai

Beta v0.9
Go

Go

go get allai.ro/sdk

Coming Soon
API Plans

Transparent pricing for developers

Start free and scale as you grow. No hidden fees, no long-term contracts.

Free

0 €

Perfect for testing and prototyping

  • 100 requests / day
  • Read-only access
  • 1 chatbot
  • Complete documentation
  • Email support
Start Free

Starter

24 €/month

For projects in development

  • 1,000 requests / day
  • Read + write access
  • 5 chatbots
  • Webhooks included
  • Priority support
Choose Starter

Enterprise

Custom

For your volume and requirements

  • Unlimited requests
  • Custom SLA
  • Dedicated tech support
  • Custom onboarding
  • IP whitelisting
  • Dedicated instance
Contact Us
Frequently Asked Questions

FAQ for developers

Quick answers to the most common questions about AllAI API.

Create a free account at app.allai.ro, navigate to Settings → API & Developers, and generate an API key. The key is instantly available and you can start making requests immediately.
Rate limiting depends on your chosen plan: Free (100 req/day), Starter (1,000 req/day), Professional (10,000 req/day), Enterprise (unlimited). If you exceed the limit, you'll receive a 429 Too Many Requests response.
Yes, AllAI supports webhooks for all important events: new message, conversation ended, lead captured, error, and more. You can register up to 10 webhook URLs per chatbot and each includes an HMAC signature for verification.
All requests and responses use JSON format. The API accepts Content-Type: application/json and returns responses with the same header. Date/time data is in ISO 8601 format (UTC).
Absolutely. With the Professional or Enterprise plan, you get full API access and can build your own SaaS product on AllAI infrastructure. Complete white-label, no AllAI branding visible to your end users.
Yes, every account has access to a complete sandbox environment. Use the sk_test_ prefix for your API key and all operations will be isolated without affecting production data. The sandbox includes the same endpoints as production.

Start building with AllAI

Get your API key in 30 seconds. Complete documentation, SDKs, and dedicated developer support.

✓ No credit card ✓ 100 requests/day free ✓ Complete documentation