← Home
Agency — Email Leads
Get Email Leads
Retrieves leads received through email related to agency.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
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| channel | string | Optional | The source channel of the lead (e.g., email). | |
| target | string | Optional | Lead target type (e.g., listing). | agency |
| is_lead | boolean | Optional | 1 = Fetch actual leads, 0 = Fetch view (non-lead) inquiries. | 1 |
| agency_ids[] | string | Optional | List of agency IDs to filter leads by specific agencies. | |
| created_from | string | Optional | Start date for filtering leads (YYYY-MM-DD). | 2025-06-01 |
| created_to | string | Optional | End date for filtering leads (YYYY-MM-DD). | 2025-10-08 |
| page | string | Optional | Page number for pagination. Default: 1. | 1 |
| per_page | string | Optional | Number of items per page. max: 100. | 50 |
Response Schema
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| data | array[object] | Optional | ||
| lead | object | Optional | ||
| agency_details | object | Optional | ||
| inquirer_details | object | Optional | ||
| meta | object | Optional | ||
| current_page | integer | Optional | ||
| from | integer | Optional | ||
| to | integer | Optional | ||
| total | integer | Optional |
Responses
200✅
422⚠️
Code Examples
curl --location 'https://api.bayut.com/v1/leads?channel=email&target=agency&is_lead=1&created_to=2025-10-08&page=1&per_page=50' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"lead": {
"id": "email|19189df3-c54f-46bd-8c6b-c5275779f54b",
"source": "bayut",
"target": "agency",
"channel": "email",
"date_time": "2025-07-17 06:18:08"
},
"agency_details": {
"url": "https://www.bayut.com/companies/test-properties-branch-1-9953",
"name": "Test Properties - Branch 1"
},
"inquirer_details": {
"name": "Jane Doe",
"cell": "+12033333333",
"email": "jane.doe@gmail.com",
"message": "I would like to find out more about your agency and properties. Please contact me at your earliest convenience."
}
}
],
"meta": {
"current_page": 1,
"from": 1,
"to": 1,
"per_page": 1,
"total": 2
}
}