Creates a search request for a customer with criteria. Requires SITE_CUSTOMER:WRITE permission.
Search requests define what a buyer/tenant is looking for. When active, the system runs automatic matching against new property listings.
Security
bearerAuth
Internal note about this search request.
Example:"Client flexible on surface, priority is location near metro"
Array of search criteria. Each criterion has an id, an operator, and a value.
Operators:
| Operator | Description | Example use |
|---|---|---|
EGAL | Equals (exact match) | Transaction type, property category |
SUPERIEUR | Greater than or equal | Min surface, min rooms |
INFERIEUR | Less than or equal | Max price, max floor |
CONTIENT | Contains (multi-value) | Zones, cities |
DIFFERENT | Not equal | Exclude a type |
Common criteria IDs (use GET /criterias/search-requests for the full list):
| ID | Description | Type |
|---|---|---|
| 27 | Property category | UNIQUE |
| 28 | Transaction type | UNIQUE |
| 65 | Postcode City | TEXT |
| 30 | Price | NUMBER |
| 33 | Number of rooms | NUMBER |
| 34 | Living area (m²) | NUMBER |
| 38 | Bedrooms | NUMBER |
Example:
[ { "id": "27", "operator": "EGAL", "value": "1" }, { "id": "28", "operator": "EGAL", "value": "Vente" }, { "id": "30", "operator": "INFERIEUR", "value": "400000" }, { "id": "33", "operator": "EGAL", "value": "3" }, { "id": "65", "operator": "EGAL", "value": "75015 PARIS" } ]
- Mock serverhttps://api-doc.immo-facile.com/_mock/openapi/customers/{customerId}/search-requests
- https://v2.immo-facile.com/api/v2/sitehttps://v2.immo-facile.com/api/v2/site/customers/{customerId}/search-requests
curl -i -X POST \
https://api-doc.immo-facile.com/_mock/openapi/customers/789/search-requests \
-H 'Authorization: Bearer <YOUR_opaque_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Apartment T3 Paris 15 budget 400k",
"comment": "Client flexible on surface, priority is location near metro",
"is_active": true,
"has_email_alert": true,
"has_sms_alert": false,
"intended_use_id": 0,
"reason_for_purchase_id": 0,
"current_resale_id": 0,
"timeframe_id": 0,
"keyword": "string",
"wording": "string",
"alertEmail": true,
"alertSms": true,
"criteria": [
{
"id": "27",
"operator": "EGAL",
"value": "1"
},
{
"id": "28",
"operator": "EGAL",
"value": "Vente"
},
{
"id": "30",
"operator": "INFERIEUR",
"value": "400000"
},
{
"id": "33",
"operator": "EGAL",
"value": "3"
},
{
"id": "65",
"operator": "EGAL",
"value": "75015 PARIS"
}
]
}'