← API home

API Reference

Complete reference for the AgentsAI REST API. All endpoints accept JSON, return JSON. Authentication via Bearer token. Base URL: https://agentsai.ae

Authentication

Every request must include your API key in one of two headers (use either, not both):

Authorization: Bearer ak_live_xxxxxxxxxxxxxxxx
X-API-Key: ak_live_xxxxxxxxxxxxxxxx

Keys start with the prefix ak_live_. Generate / revoke keys from your account page.

Rate limits

TierMonthly callsConcurrencyBundled with
Trial100 lifetime1 req/sFree signup
API Starter1,000 / month1 req/sApp Starter plan
API Pro5,000 / month3 req/sApp Pro plan
API Enterprise25,000 / month10 req/sApp Team plan

Over-limit responses return HTTP 429 with Retry-After header.

Error codes

HTTPerror codeMeaning
400validation_errorRequired field missing or invalid
401unauthorized / invalid_keyMissing / invalid / revoked API key
429monthly_limit_reachedTier's monthly cap exhausted
502generation_failedUpstream AI temporarily unavailable; retry with backoff

Endpoints

POST/api/v1/listing

Generate a property listing description (Bayut/Property Finder ready).

Request body

FieldTypeRequired
propertyTypestring (enum)yes
locationstringyes
bedroomsintegerno
bathroomsintegerno
sizeSqftintegerno
buildingstringno
priceinteger (AED)no
priceType'sale' | 'rent_yearly' | 'rent_monthly'no
featuresstring[]no
amenitiesstring[]no
viewstringno
conditionstringno
tone'luxury' | 'family' | 'investment' | 'casual'no
language'en' | 'ar' | 'both'no
extrastringno

Response (200)

FieldType
outputstring
toolstring
usage.tier'trial' | 'starter' | 'pro' | 'enterprise'
usage.monthly_limitinteger

cURL example

curl -X POST https://agentsai.ae/api/v1/listing \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"propertyType":"Apartment","bedrooms":2,"sizeSqft":1450,"location":"Dubai Marina","price":2400000,"priceType":"sale","tone":"luxury","language":"en"}'
POST/api/v1/email

Generate a follow-up email (subject + body). 6 scenario presets.

Request body

FieldTypeRequired
scenariostring (enum)yes
clientNamestringyes
propertystringno
detailsstringno
agentNamestringno
language'en' | 'ar' | 'both'no

Response (200)

FieldType
outputstring
toolstring
usage.tier'trial' | 'starter' | 'pro' | 'enterprise'
usage.monthly_limitinteger

cURL example

curl -X POST https://agentsai.ae/api/v1/email \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"scenario":"viewing_confirm","clientName":"Layla","property":"2BR Marina","agentName":"Ahmed"}'
POST/api/v1/whatsapp

Generate a short, reply-worthy WhatsApp message (under 60 words).

Request body

FieldTypeRequired
scenariostring (enum)yes
clientNamestringyes
propertystringno
detailsstringno
agentNamestringno
language'en' | 'ar' | 'both'no

Response (200)

FieldType
outputstring
toolstring
usage.tier'trial' | 'starter' | 'pro' | 'enterprise'
usage.monthly_limitinteger

cURL example

curl -X POST https://agentsai.ae/api/v1/whatsapp \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"scenario":"first_outreach","clientName":"Mohammed","property":"3BR Palm villa"}'
POST/api/v1/chat

Multi-turn conversational AI. Stateless — client maintains history.

Request body

FieldTypeRequired
messagestringyes
history{role,content}[] (max 30)no
language'en' | 'ar' | 'both'no

Response (200)

FieldType
outputstring
toolstring
usage.tier'trial' | 'starter' | 'pro' | 'enterprise'
usage.monthly_limitinteger

cURL example

curl -X POST https://agentsai.ae/api/v1/chat \\
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \\
  -d '{"message":"What is the 2026 rental yield in JVC?"}'
POST/api/v1/cma

Generate a Comparative Market Analysis report with comparables and price recommendation.

Request body

FieldTypeRequired
propertyTypestringyes
locationstringyes
sizeSqftintegeryes
bedroomsintegerno
buildingstringno
viewstringno
conditionstringno
purpose'sale' | 'rent'no
language'en' | 'ar' | 'both'no

Response (200)

FieldType
outputstring
toolstring
usage.tier'trial' | 'starter' | 'pro' | 'enterprise'
usage.monthly_limitinteger

cURL example

curl -X POST https://agentsai.ae/api/v1/cma \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"propertyType":"Apartment","location":"Downtown Dubai","sizeSqft":1100,"bedrooms":2,"purpose":"sale"}'

More endpoints coming. Cold-call, persona, valuation, compliance, contract, brochure, photo→listing — all on the roadmap. Email us if you need a specific endpoint earlier.

Start building

Free signup includes 100 trial API calls. Upgrade for higher monthly limits.

Generate API key →