Create Real Estate
The real estate API of app.neoagent.co provides functionality to create a new real estate chatbot by sending a POST request to the endpoint /chat/Chatbot/RealEstateCreate.
Endpoint
Request URL: https://app.neoagent.co/chat/Chatbot/RealEstateCreate
Method: POST
Required Headers
The API request must include the following headers:
Authorization: <Your-Secret-Key>- string, required - The secret key to authenticate the API requestContent-Type: application/json- string, required - The content type of the request payload (must be application/json)
Request Body
The request body must contain the following parameters:
{
// string, required - Chatbot ID (available in chatbot settings -> general -> chatbot ID)
"SerialNumber": "3254a9d0424c4806b9ea3d0763xxxxxx",
// string, required - Must be one of: [for_sale, for_rent]
"SaleType": "for_sale",
// string, required - Must be one of: [Active, PreOnMarket, Sold]
"Status": "Active",
// string, required - Currency symbol (e.g., $)
"CurrencySymbol": "$",
// string, required - Property type (e.g., Single Family Residential)
"PropertyType": "Single Family Residential",
// number, required - Number of bedrooms
"Bedrooms": 3,
// number, required - Number of bathrooms
"Bathrooms": 2.5,
// string, required - Property listing URL
"Url": "https://example.com/property/123",
// string, required - MLS number
"MLSNumber": "MLS123456",
// number, required - Year the property was built
"YearBuilt": 1998,
// number, required - Number of days on the market
"DaysOnMarket": 2,
// number, required - Lot area
"LotArea": 800,
// number, required - Building area
"BuildingArea": 2500,
// string, required - Must be one of: [Square Feet, Square Meters]
"AreaUnit": "Square Feet",
// array - Array of image URLs
"Images": [
"https://example.com/img1.jpg",
"https://example.com/img2.jpg"
],
// string - Must be one of: [OpenHouse, 3D]
"Tour": "OpenHouse",
// number, required - Number of parking spots
"ParkingSpots": 8,
// string - Property description
"Description": "Beautiful family home with modern comforts",
// array - Additional property information in the format [{'Key': 'xx', 'value': 'xx'}]
"ExtensionColumn": [
{
"Key": "Pool",
"value": "Yes"
},
{
"Key": "Garage",
"value": "2 cars"
}
],
// string - Description of the property location
"Location": "Residential area",
// string - Address
"Address": "123 Main St",
// string - City name
"City": "Los Angeles",
// string - State name
"State": "CA",
// string - ZIP code
"ZIP": "90001",
// number - Latitude of the property
"Latitude": 30.96,
// number - Longitude of the property
"Longitude": -78.93,
// number - Sale price
"SalePrice": 100000,
// number - Price per unit area
"UnitAreaPrice": 100,
// number - Monthly HOA fee
"HOAMonth": 500,
// number - Estimated price
"ZestimatePrice": 100000,
// number - Monthly rent price
"RentPrice": 2500,
// string - Must be one of: [Entire space, Room]
"SpaceType": "Entire space",
// number - Deposit amount required
"DepositFee": 5000
}
Parameters
SerialNumber- string, required - Chatbot ID (available in chatbot settings -> general -> chatbot ID)SaleType- string, required - Must be one of: [for_sale, for_rent]Status- string, required - Must be one of: [Active, PreOnMarket, Sold]CurrencySymbol- string, required - Currency symbol (e.g., $)PropertyType- string, required - Property type (e.g., Single Family Residential)Bedrooms- number, required - Number of bedroomsBathrooms- number, required - Number of bathroomsUrl- string, required - URL of the property listingMLSNumber- string, required - MLS numberYearBuilt- number, required - Year the property was builtDaysOnMarket- number, required - Number of days on the marketLotArea- number, required - Lot areaBuildingArea- number, required - Building areaAreaUnit- string, required - Must be one of: [Square Feet, Square Meters]Images- array - Array of image URLsTours- string - Must be one of: [OpenHouse, 3D]ParkingSpots- number, required - Number of parking spotsDescription- string - Property descriptionExtensionColumn- array - Additional property information in the format[{'Key': 'xx', 'value': 'xx'}]Location- string - Description of the property locationAddress- string - AddressCity- string - City nameState- string - State nameZIP- string - ZIP codeLatitude- number - Latitude of the propertyLongitude- number - Longitude of the propertySalePrice- number - Sale priceUnitAreaPrice- number - Price per unit areaHOAMonth- number - Monthly HOA feeZestimatePrice- number - Estimated priceRentPrice- number - Monthly rent priceSpaceType- string - Must be one of: [Entire space, Room]DepositFee- number - Deposit amount required
Request Examples
- JavaScript (Fetch API)
- Python (Requests)
- cURL
- HTTP Raw
const res = await fetch('https://app.neoagent.co/chat/Chatbot/RealEstateCreate', {
method: 'POST',
headers: {
"chatrobot-sessionkey": "<Your-Session-Key>"
},
body: JSON.stringify({
"SerialNumber": "3254a9d0424c4806b9ea3d0763xxxxxx",
"SaleType": "for_sale",
"Status": "Active",
"CurrencySymbol": "$",
"PropertyType": "Single Family Residential",
"Bedrooms": 3,
"Bathrooms": 2.5,
"Url": "https://example.com/property/123",
"MLSNumber": "MLS123456",
"YearBuilt": 1998,
"DaysOnMarket": 2,
"LotArea": 800,
"BuildingArea": 2500,
"AreaUnit": "Square Feet",
"ParkingSpots": 8
})
});
const data = await res.json();
console.log(data);
import requests
import json
url = 'https://app.neoagent.co/chat/Chatbot/RealEstateCreate'
headers = {
"chatrobot-sessionkey": "<Your-Session-Key>"
}
data = {
"SerialNumber": "3254a9d0424c4806b9ea3d0763xxxxxx",
"SaleType": "for_sale",
"Status": "Active",
"CurrencySymbol": "$",
"PropertyType": "Single Family Residential",
"Bedrooms": 3,
"Bathrooms": 2.5,
"Url": "https://example.com/property/123",
"MLSNumber": "MLS123456",
"YearBuilt": 1998,
"DaysOnMarket": 2,
"LotArea": 800,
"BuildingArea": 2500,
"AreaUnit": "Square Feet",
"ParkingSpots": 8
}
response = requests.post(url, headers=headers, json=data)
data = response.json()
print(data)
curl 'https://app.neoagent.co/chat/Chatbot/RealEstateCreate' \
-X POST \
-H 'chatrobot-sessionkey: <Your-Session-Key>' \
-d '{"SerialNumber":"3254a9d0424c4806b9ea3d0763xxxxxx","SaleType":"for_sale","Status":"Active","CurrencySymbol":"$","PropertyType":"Single Family Residential","Bedrooms":3,"Bathrooms":2.5,"Url":"https://example.com/property/123","MLSNumber":"MLS123456","YearBuilt":1998,"DaysOnMarket":2,"LotArea":800,"BuildingArea":2500,"AreaUnit":"Square Feet","ParkingSpots":8}'
POST /chat/Chatbot/RealEstateCreate HTTP/1.1
Host: app.neoagent.co
chatrobot-sessionkey: <Your-Session-Key>
{
"SerialNumber": "3254a9d0424c4806b9ea3d0763xxxxxx",
"SaleType": "for_sale",
"Status": "Active",
"CurrencySymbol": "$",
"PropertyType": "Single Family Residential",
"Bedrooms": 3,
"Bathrooms": 2.5,
"Url": "https://example.com/property/123",
"MLSNumber": "MLS123456",
"YearBuilt": 1998,
"DaysOnMarket": 2,
"LotArea": 800,
"BuildingArea": 2500,
"AreaUnit": "Square Feet",
"ParkingSpots": 8
}
Response
The API response will be a JSON object with the following structure:
{
"Data": "PROP123456",
// string - API version
"Version": "1.0.0",
// boolean - Status of operation success
"Success": true,
// integer - HTTP status code
"Code": 200,
// string - Error message, if present
"Message": ""
}
Error Handling
If the request fails, you should:
- Check the HTTP status code for network-level errors
- Examine the
CodeandMessagefields in the response for business-level errors - The
Messagefield will contain detailed information about the error.