On this page
API Overview
The AIE REST API provides programmatic access to all platform features. Build custom integrations, automate workflows, and create powerful applications using our comprehensive API.
RESTful Design
Clean, predictable URLs and standard HTTP methods
Secure
API key authentication with rate limiting
Fast & Reliable
Global CDN with 99.9% uptime guarantee
Base URL
All API requests should be made to:
https://api.aiechatbots.com/v1Authentication
AIE uses API key authentication. Include your API key in the Authorization header of every request.
// Authentication Header
Authorization: Bearer your-api-key-here
// Example cURL request
curl -X GET "https://api.aiechatbots.com/v1/chatbots" \
-H "Authorization: Bearer your-api-key-here" \
-H "Content-Type: application/json"Request Format
All requests should be made with JSON content type and proper headers:
Authorization: Bearer {api_key}Content-Type: application/jsonAccept: application/json
X-Request-ID: {unique_id}User-Agent: {your_app}
// POST request example
{
"name": "Customer Support Bot",
"description": "AI assistant for customer inquiries",
"settings": {
"language": "en",
"tone": "friendly",
"max_tokens": 150
}
}Response Format
All API responses follow a consistent JSON structure:
// Successful response
{
"success": true,
"data": {
"id": "chatbot_123456",
"name": "Customer Support Bot",
"status": "active",
"created_at": "2024-01-15T10:30:00Z"
},
"meta": {
"request_id": "req_789012",
"timestamp": "2024-01-15T10:30:00Z"
}
}Response Fields:
- success: Boolean indicating if the request was successful
- data: The requested data or result of the operation
- meta: Additional information about the request and response
Error Handling
When errors occur, the API returns detailed error information:
// Error response
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid or expired",
"details": {
"field": "authorization",
"expected": "Bearer token format"
}
},
"meta": {
"request_id": "req_789013",
"timestamp": "2024-01-15T10:30:00Z"
}
}Common Error Codes:
- 400: Bad Request - Invalid syntax
- 401: Unauthorized - Invalid API key
- 403: Forbidden - Access denied
- 404: Not Found - Resource doesn't exist
- 429: Too Many Requests - Rate limit exceeded
- 500: Internal Server Error
- 502: Bad Gateway
- 503: Service Unavailable
- 504: Gateway Timeout
Rate Limits
API requests are rate-limited to ensure fair usage and optimal performance:
X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset.SDKs & Libraries
Official SDKs and community libraries to simplify integration:
Available Endpoints
Explore our comprehensive API endpoints organized by functionality:
/chatbots/chatbots/chatbots/{id}/chatbots/{id}/chatbots/{id}/conversations/conversations/conversations/{id}/messages/conversations/{id}/analytics/overview/analytics/conversations/analytics/performanceReady to start building?
Explore detailed endpoint documentation and try our interactive API explorer.
View Full API Reference