Regions API
The Regions API provides information about available deployment regions and channels. Regions help configure your AI agents to communicate using locally supported languages and dialects, ensuring natural and culturally appropriate conversations with your customers.
AlooChat currently operates exclusively in the GCC (Gulf Cooperation Council) and MENA regions, providing specialized support for Arabic dialects and local languages.
Why Regions Matter
Regions in AlooChat serve two key purposes:
- Language & Dialect Support - Each region has specific languages and Arabic dialects that the AI agent will use when communicating with customers
- Timezone Awareness - Agents understand local business hours and time references
When you assign a region to an agent, it automatically adapts its communication style to match local dialects and cultural norms.
Base URL
https://api.aloochat.ai/api/publicAuthentication
All requests require an API key in the x-api-key header:
x-api-key: your_api_key_hereEndpoints Overview
| Method | Endpoint | Description |
|---|---|---|
GET | /regions | List all available regions |
GET | /regions/{id} | Get region by ID |
GET | /regions/channels | Get available deployment channels |
Region Properties
| Property | Type | Description |
|---|---|---|
id | string | Unique region identifier (UUID) |
name | string | Region/country name |
code | string | Region code (e.g., “uae”, “ksa”, “kwt”) |
flag | string | Country flag emoji |
languages | array | Supported languages (e.g., [“Arabic”, “English”]) |
dialects | object | Supported dialects per language |
timezone | string | Local timezone (e.g., “GMT+3”, “GMT+4”) |
Available Regions
AlooChat supports the following GCC and MENA regions:
| Region | Code | Flag | Languages | Arabic Dialects | Timezone |
|---|---|---|---|---|---|
| United Arab Emirates | uae | 🇦🇪 | Arabic, English | Emirati, Gulf | GMT+4 |
| Saudi Arabia | ksa | 🇸🇦 | Arabic, English | Najdi, Hejazi, Gulf | GMT+3 |
| Kuwait | kwt | 🇰🇼 | Arabic, English | Kuwaiti, Gulf | GMT+3 |
| Bahrain | bhr | 🇧🇭 | Arabic, English | Bahraini, Gulf | GMT+3 |
| Qatar | qat | 🇶🇦 | Arabic, English | Qatari, Gulf | GMT+3 |
| Oman | omn | 🇴🇲 | Arabic, English | Omani, Gulf | GMT+4 |
| Jordan | jor | 🇯🇴 | Arabic, English | Jordanian, Levantine | GMT+3 |
| Lebanon | lbn | 🇱🇧 | Arabic, English, French | Lebanese, Levantine | GMT+3 |
| Egypt | egy | 🇪🇬 | Arabic, English | Egyptian | GMT+2 |
Available Channels
| Channel | Description |
|---|---|
web | Web widget integration |
whatsapp | WhatsApp Business API |
telegram | Telegram Bot API |
slack | Slack workspace integration |
messenger | Facebook Messenger |
voice | Voice/phone integration |
api | Direct API access |
List Regions
Retrieve all available deployment regions.
Endpoint: GET /regions
curl -X GET "https://api.aloochat.ai/api/public/regions" \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json"Response
[
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "United Arab Emirates",
"code": "uae",
"flag": "🇦🇪",
"languages": ["Arabic", "English"],
"dialects": {
"Arabic": ["Emirati", "Gulf"]
},
"timezone": "GMT+4"
},
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Saudi Arabia",
"code": "ksa",
"flag": "🇸🇦",
"languages": ["Arabic", "English"],
"dialects": {
"Arabic": ["Najdi", "Hejazi", "Gulf"]
},
"timezone": "GMT+3"
},
{
"id": "550e8400-e29b-41d4-a716-446655440002",
"name": "Kuwait",
"code": "kwt",
"flag": "🇰🇼",
"languages": ["Arabic", "English"],
"dialects": {
"Arabic": ["Kuwaiti", "Gulf"]
},
"timezone": "GMT+3"
},
{
"id": "550e8400-e29b-41d4-a716-446655440003",
"name": "Qatar",
"code": "qat",
"flag": "🇶🇦",
"languages": ["Arabic", "English"],
"dialects": {
"Arabic": ["Qatari", "Gulf"]
},
"timezone": "GMT+3"
}
]Get Region by ID
Retrieve a specific region by its ID.
Endpoint: GET /regions/{id}
curl -X GET "https://api.aloochat.ai/api/public/regions/550e8400-e29b-41d4-a716-446655440000" \
-H "x-api-key: your_api_key_here"Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "United Arab Emirates",
"code": "uae",
"flag": "🇦🇪",
"languages": ["Arabic", "English"],
"dialects": {
"Arabic": ["Emirati", "Gulf"]
},
"timezone": "GMT+4"
}Get Available Channels
Retrieve all available deployment channels.
Endpoint: GET /regions/channels
curl -X GET "https://api.aloochat.ai/api/public/regions/channels" \
-H "x-api-key: your_api_key_here"Response
[
{
"id": "web",
"name": "Web Widget",
"description": "Embed a chat widget on your website"
},
{
"id": "whatsapp",
"name": "WhatsApp",
"description": "Connect via WhatsApp Business API"
},
{
"id": "telegram",
"name": "Telegram",
"description": "Deploy as a Telegram bot"
},
{
"id": "slack",
"name": "Slack",
"description": "Integrate with Slack workspaces"
},
{
"id": "messenger",
"name": "Facebook Messenger",
"description": "Connect via Facebook Messenger"
},
{
"id": "voice",
"name": "Voice",
"description": "Voice/phone integration with LiveKit"
},
{
"id": "api",
"name": "API",
"description": "Direct API access for custom integrations"
}
]Using Regions with Deployments
When creating a deployment, you specify a region to determine which language and dialect your AI agent will use when communicating with customers.
Example: Create Deployment with Region
# First, get available regions
curl -X GET "https://api.aloochat.ai/api/public/regions" \
-H "x-api-key: your_api_key_here"
# Then create a deployment with the selected region (e.g., Saudi Arabia)
curl -X POST "https://api.aloochat.ai/api/public/deployments" \
-H "x-api-key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"deployable_type": "agent",
"deployable_id": "your-agent-uuid",
"channel": "whatsapp",
"region_id": "550e8400-e29b-41d4-a716-446655440001",
"languages": "ar,en"
}'Region Selection Best Practices
1. Choose Based on Customer Location & Dialect
Select the region that matches your customers’ location to ensure the AI agent uses the appropriate Arabic dialect.
| Customer Location | Recommended Region | Primary Dialect |
|---|---|---|
| UAE | uae | Emirati, Gulf |
| Saudi Arabia | ksa | Najdi, Hejazi, Gulf |
| Kuwait | kwt | Kuwaiti, Gulf |
| Bahrain | bhr | Bahraini, Gulf |
| Qatar | qat | Qatari, Gulf |
| Oman | omn | Omani, Gulf |
| Jordan | jor | Jordanian, Levantine |
| Lebanon | lbn | Lebanese, Levantine |
| Egypt | egy | Egyptian |
2. Dialect Considerations
- Gulf Arabic - Common across UAE, Saudi Arabia, Kuwait, Bahrain, Qatar, and Oman
- Levantine Arabic - Used in Jordan and Lebanon
- Egyptian Arabic - Widely understood across the Arab world
3. Multi-Region Deployments
If your business serves customers across multiple GCC countries, consider creating separate deployments for each region to provide the most natural communication experience.
Error Responses
| Status Code | Description |
|---|---|
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Region not found |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |
Error Response Format
{
"detail": "Region not found"
}