← Home Get Email Leads

Get Email Leads

GEThttps://api.bayut.com/v1/leads

Retrieves leads received through email related to listings.The is_lead parameter determines whether to fetch actual leads or view (non-lead) inquiries within the specified date range.

🔐 Bearer Token: Provide your bearer token in the Authorization header when making requests to protected resources.
Query Parameters
NameTypeRequiredDescriptionExample
channelstringOptionalThe source channel of the lead (e.g., email).email
targetstringOptionalLead target type (e.g., listing).listing
is_leadbooleanOptional1 = Fetch actual leads, 0 = Fetch view (non-lead) inquiries.1
agency_ids[]stringOptionalList of agency IDs to filter leads by specific agencies.
created_fromstringOptionalStart date for filtering leads (YYYY-MM-DD).2025-10-01
created_tostringOptionalEnd date for filtering leads (YYYY-MM-DD).2025-10-08
pagestringOptionalPage number for pagination. Default: 1.1
per_pagestringOptionalNumber of items per page. max: 100.50
Response Schema
NameTypeRequiredDescriptionExample
dataarray[object]Optional
leadobjectOptional
agent_detailsobjectOptional
listing_detailsobjectOptional
inquirer_detailsobjectOptional
metaobjectOptional
current_pageintegerOptional
fromintegerOptional
tointegerOptional
totalintegerOptional
Responses
200
422⚠️
Code Examples
curl --location --globoff 'https://api.bayut.com/v1/leads?channel=email&target=listing&is_lead=1&agency_ids[]=&created_from=2025-10-01&created_to=2025-10-08&page=1&per_page=50' \
--header 'Authorization: Bearer <token>'
{
    "data": [
        {
            "lead": {
                "id": "email|6115aeac-se-9fbf-2cf58a947176",
                "source": "bayut",
                "target": "listing",
                "channel": "email",
                "date_time": "2025-07-25 16:08:09"
            },
            "agent_details": {
                "url": "https://www.bayut.com/brokers/test-2065503.html",
                "name": "Jane doe",
                "email": "jane@example.com",
                "phone": "+97111111111",
                "proxy_number": "+9713333333"
            },
            "listing_details": {
                "id": 12201816,
                "reference": "B-Jul-Eleven-VR-125384",
                "category": "Townhouse"
            },
            "inquirer_details": {
                "name": "John Doe",
                "cell": "+9715444444444",
                "email": "john@example.com",
                "message": "I would like to inquire about your property Bayut - B-Jul-Eleven-VR-12384. Please contact me at your earliest convenience."
            }
        }
    ],
    "meta": {
        "current_page": 21,
        "from": 1,
        "to": 1,
        "per_page": 1,
        "total": 34
    }
}