Getting Started
The AmaniBOT API is built on REST principles and returns JSON responses. All requests require authentication via API key.
Base URL
Authentication
Include your API key in the Authorization header:
Chat Completion
Send a message to AmaniBOT and receive a culturally appropriate response in the specified language.
Endpoint
Request Body
Response
Language Detection
Automatically detect the language of input text with cultural context.
Endpoint
Request Body
Response
Supported Languages
AmaniBOT supports the following language codes:
- en - English
- ar - Arabic (العربية)
- hi - Hindi (हिन्दी)
- ml - Malayalam (മലയാളം)
- te - Telugu (తెలుగు)
- kn - Kannada (ಕನ್ನಡ)
- ta - Tamil (தமிழ்)
Error Handling
The API uses standard HTTP status codes and returns detailed error messages.
Error Response Format
Common Status Codes
- 200 - Success
- 400 - Bad Request
- 401 - Unauthorized
- 429 - Rate Limit Exceeded
- 500 - Internal Server Error
Rate Limits
API rate limits vary by plan:
- Starter - 100 requests per minute
- Professional - 1,000 requests per minute
- Enterprise - Custom limits
Rate Limit Headers
SDKs and Libraries
We provide official SDKs for popular programming languages:
- JavaScript/Node.js - npm install amanibot-js
- Python - pip install amanibot-python
- Java - Maven/Gradle available
- PHP - Composer package
- Go - Go module