Regions

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:

  1. Language & Dialect Support - Each region has specific languages and Arabic dialects that the AI agent will use when communicating with customers
  2. 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/public

Authentication

All requests require an API key in the x-api-key header:

x-api-key: your_api_key_here

Endpoints Overview

MethodEndpointDescription
GET/regionsList all available regions
GET/regions/{id}Get region by ID
GET/regions/channelsGet available deployment channels

Region Properties

PropertyTypeDescription
idstringUnique region identifier (UUID)
namestringRegion/country name
codestringRegion code (e.g., “uae”, “ksa”, “kwt”)
flagstringCountry flag emoji
languagesarraySupported languages (e.g., [“Arabic”, “English”])
dialectsobjectSupported dialects per language
timezonestringLocal timezone (e.g., “GMT+3”, “GMT+4”)

Available Regions

AlooChat supports the following GCC and MENA regions:

RegionCodeFlagLanguagesArabic DialectsTimezone
United Arab Emiratesuae🇦🇪Arabic, EnglishEmirati, GulfGMT+4
Saudi Arabiaksa🇸🇦Arabic, EnglishNajdi, Hejazi, GulfGMT+3
Kuwaitkwt🇰🇼Arabic, EnglishKuwaiti, GulfGMT+3
Bahrainbhr🇧🇭Arabic, EnglishBahraini, GulfGMT+3
Qatarqat🇶🇦Arabic, EnglishQatari, GulfGMT+3
Omanomn🇴🇲Arabic, EnglishOmani, GulfGMT+4
Jordanjor🇯🇴Arabic, EnglishJordanian, LevantineGMT+3
Lebanonlbn🇱🇧Arabic, English, FrenchLebanese, LevantineGMT+3
Egyptegy🇪🇬Arabic, EnglishEgyptianGMT+2

Available Channels

ChannelDescription
webWeb widget integration
whatsappWhatsApp Business API
telegramTelegram Bot API
slackSlack workspace integration
messengerFacebook Messenger
voiceVoice/phone integration
apiDirect 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 LocationRecommended RegionPrimary Dialect
UAEuaeEmirati, Gulf
Saudi ArabiaksaNajdi, Hejazi, Gulf
KuwaitkwtKuwaiti, Gulf
BahrainbhrBahraini, Gulf
QatarqatQatari, Gulf
OmanomnOmani, Gulf
JordanjorJordanian, Levantine
LebanonlbnLebanese, Levantine
EgyptegyEgyptian

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 CodeDescription
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient permissions
404Not Found - Region not found
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Error Response Format

{
  "detail": "Region not found"
}