Create a property
https://secure.alterestate.com/api/v1/properties/create/Creates one property in your agency’s inventory, with the same fields as the new-property form.
This call creates one property, the same record as the dashboard form at Properties → New property. Send the fields you have. name and category are required. The form also requires at least one operation in listing_type and at least one agent.
Authentication
Send Authorization: Token your_api_key_here. Account token. Server-side only: never send it from browser or mobile app code.
Listing
| Field | Type | Description |
|---|---|---|
namerequired | string | Public title, the “Título del anuncio” on the form. Maximum 300 characters. Example: Modern apartment in Naco. |
private_name | string | Internal name, such as the building, tower or unit. Shown when the agency enables private names. Maximum 500 characters. Example: Torre María, piso 4. |
categoryrequired | number | Category ID. See Categories below. The form offers the categories of the agency’s country. Example: 1. |
ikey | string | Your internal property code. Example: NACO-120. |
short_description | string | Short text used as the search-result description. Example: Bright apartment close to parks and restaurants.. |
condition | string | Condition code. See Condition below. When it is 5 (in construction), the form also requires delivery_date. Example: 9. |
style | string | Architectural style code. See Style below. Example: 7. |
year_construction | string | Year the property was built. Example: 2018. |
delivery_date | date | Estimated delivery date, YYYY-MM-DD. Required by the form when condition is 5. Example: 2026-12-01. |
featured | boolean | Mark the listing as featured. Example: false. |
exclusive | boolean | Mark the listing as exclusive. The form shows this when the user can set exclusive properties. Example: true. |
show_on_website | boolean | Whether the listing is visible on the agency website. Defaults to true. Example: true. |
People
| Field | Type | Description |
|---|---|---|
agents | string[] | UIDs of the agents responsible for the listing. The form requires at least one. Get uids from Users. Example: ["IZHIZ6C3Z6"]. |
captured_by | string[] | UIDs of the agents who captured the listing. The form requires this when the agency shows the captador field. Example: ["IZHIZ6C3Z6"]. |
landlords | string[] | UIDs of the owner contacts. The form requires at least one when the agency makes owners mandatory. Create the contact first. Example: ["C0NT4CTUID"]. |
team | number | Team ID, when the agency uses teams. Example: 4. |
tags | number[] | Tag IDs already created for properties in the agency. Example: [12, 18]. |
private_notes | string | Internal notes. They are not published. HTML from the editor is accepted. Example: Keys are with the doorman.. |
registration_email | string | Email that receives registration notices for this listing. Example: owner@example.com. |
Operation and price
| Field | Type | Description |
|---|---|---|
listing_type | number[] | Operations. 1 sale, 2 long-term rent, 3 short-term rent. Send one or more, for example [1] or [1, 2]. The form rejects a property with none. Example: [1]. |
sale_price | number | Sale price, in currency_sale. Send it when listing_type includes 1. Example: 185000. |
currency_sale | string | Currency of sale_price. See Currencies below. Example: USD. |
furnished_sale_price | number | Furnished sale price, in currency_sale_furnished. Example: 210000. |
currency_sale_furnished | string | Currency of furnished_sale_price. Example: USD. |
rent_price | number | Long-term rent price, in currency_rent. Send it when listing_type includes 2. Example: 1200. |
currency_rent | string | Currency of rent_price. Example: USD. |
furnished_price | number | Furnished long-term rent price, in currency_furnished. Example: 1500. |
currency_furnished | string | Currency of furnished_price. Example: USD. |
rental_price | number | Short-term rent price, in currency_rental. Send it when listing_type includes 3. Example: 150. |
currency_rental | string | Currency of rental_price. Example: USD. |
maintenance_fee | number | Maintenance fee, in currency_maintenance. Example: 150. |
currency_maintenance | string | Currency of maintenance_fee. Example: USD. |
comision | string | Sale commission as a percent, without the % sign. Example: 3 means 3%. The form can require it for a sale. Example: 3. |
rent_comision | string | Rent commission as a number of months. Example: 1 means one month. The form can require it for a rent. Example: 1. |
show_on_propertybank | boolean | Share the listing on the collaboration network (Property Bank). Example: true. |
share_comision | number | Percent of the commission shared with a collaborating agency. Used when show_on_propertybank is true. Example: 50. |
collaboration_notes | string | Notes for collaborating agencies. Used when show_on_propertybank is true. Example: Showings on weekdays after 10:00.. |
Features
| Field | Type | Description |
|---|---|---|
room | number | Bedrooms. The form shows this for apartments, houses, penthouses, lofts, villas, hotels and buildings. Example: 2. |
bathroom | number | Bathrooms. Example: 2. |
half_bathrooms | number | Half bathrooms. Example: 1. |
parkinglot | number | Parking spaces. Example: 1. |
floor_level | number | Floor the unit is on. The form shows this for apartments, penthouses, lofts, offices and commercial spaces. Example: 4. |
total_floors | number | Floors in the building. The form shows this for apartments, houses, penthouses, buildings and villas. Example: 8. |
property_area | number | Built area. Pair it with property_area_measurer. Example: 110. |
property_area_measurer | string | Unit of property_area. See Area units below. Default Mt2. Example: Mt2. |
terrain_area | number | Land area. The form shows this for houses, villas, lots, farms, buildings and commercial categories. Example: 180. |
terrain_area_measurer | string | Unit of terrain_area. Default Mt2. Example: Mt2. |
terrace_area | number | Terrace area. The form shows this for apartments, houses, penthouses and lofts. Example: 18. |
terrace_area_measurer | string | Unit of terrace_area. Default Mt2. Example: Mt2. |
canbuild | boolean | Whether construction is allowed on the land. The form shows this when land area is shown. Example: true. |
area_front | number | Frontage, in square meters on the form. Shown for industrial warehouses when that section is enabled. Example: 20. |
area_deep | number | Depth, in square meters on the form. Shown for industrial warehouses when that section is enabled. Example: 40. |
height_min | string | Minimum interior height. Shown for industrial warehouses. Example: 6. |
height_max | string | Maximum interior height. Shown for industrial warehouses. Example: 9. |
ramps | number | Number of ramps. Shown for industrial warehouses. Example: 1. |
fork_lifts | number | Number of forklifts. Shown for industrial warehouses. Example: 0. |
Location
| Field | Type | Description |
|---|---|---|
country | number | Country ID. See Locations. 149 is the Dominican Republic. Example: 149. |
province | number | Province ID. See Locations. Example: 31. |
city | number | City ID. See Locations. Example: 156. |
sector | number | Sector (neighborhood) ID. See Locations. The form requires province, city and sector for the Dominican Republic. Example: 2234. |
address | string | Street address. Maximum 500 characters. Example: Calle El Recodo 12. |
address2 | string | Additional address line, such as apartment or floor. Maximum 500 characters. Example: Apto 4B. |
zip_code | string | Postal code. Example: 10111. |
latitude | string | Latitude. The form fills this from the address and lets you adjust the map pin. Example: 18.4762. |
longitude | string | Longitude. Example: -69.9312. |
hide_location | boolean | true hides the exact pin on the public site. The form label is “show exact location”: Yes sends false, No sends true. Default true. Example: true. |
stratus | string | Socioeconomic stratum. The form shows this field for agencies in Colombia. Example: 5. |
Description and amenities
| Field | Type | Description |
|---|---|---|
description | string | Full description. The form stores HTML from the editor. Send plain text or HTML you trust. Example: Bright apartment with a balcony.. |
amenities | number[] | Amenity IDs. Same IDs as the features filter on List properties. See Common amenities below. Example: [74, 73]. |
custom_fields | object | Agency custom fields for properties, as { key: value }. Keys come from the fields configured under Settings. Required custom fields must be present or the request is rejected. Example: {"vista":"mar"}. |
Extras
| Field | Type | Description |
|---|---|---|
keys | number | How many sets of keys the agency holds. Example: 2. |
has_sign | boolean | Whether a for-sale or for-rent sign is on the property. Example: false. |
b2b | boolean | true marks the listing as B2B. The form shows this when the agency uses B2B. Example: false. |
virtual_tour | string | Virtual tour URL. Send a URL, not embed markup. Example: https://example.com/tour. |
youtubeiframe | string | YouTube video URL. Send a URL, not embed markup. Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ. |
mapiframe | string | Map embed URL. Example: https://maps.google.com/?q=18.4762,-69.9312. |
external_route | string | Public URL of this listing on another website. Maximum 255 characters. Example: https://example.com/propiedad/apartamento-naco. |
Cadastral
| Field | Type | Description |
|---|---|---|
enrollment | string | Title number (matrícula). If the agency requires unique titles and this number already exists, the listing is saved with status Conflict (8). Example: 0100123456. |
title_date | string | Title date, as text. Example: 2016-04-12. |
cadastral_district | string | Cadastral district. Example: 01. |
cadastral_solar | string | Cadastral lot (solar). Example: 12. |
block | string | Block (manzana). Example: 4. |
demarcation | boolean | Whether the property has a demarcation (deslinde). Example: false. |
hasLoan | boolean | Whether there is a lien (gravamen). Example: false. |
current_debt | number | Current debt amount, when hasLoan is true. Example: 25000. |
bank_creditor | string | Creditor of the debt, when hasLoan is true. Example: Banco Popular. |
debt_time_left | string | Time left on the debt, as text. Example: 8 years. |
Example request
curl --request POST \
--url 'https://secure.alterestate.com/api/v1/properties/create/' \
--header 'Authorization: Token your_api_key_here' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Modern apartment in Naco",
"category": 1,
"ikey": "NACO-120",
"agents": [
"IZHIZ6C3Z6"
],
"listing_type": [
1
],
"sale_price": 185000,
"currency_sale": "USD",
"condition": "9",
"room": 2,
"bathroom": 2,
"half_bathrooms": 1,
"parkinglot": 1,
"floor_level": 4,
"property_area": 110,
"property_area_measurer": "Mt2",
"country": 149,
"province": 31,
"city": 156,
"sector": 2234,
"address": "Calle El Recodo 12",
"hide_location": true,
"short_description": "Bright apartment close to parks and restaurants.",
"description": "Bright apartment with a balcony, ready for showings.",
"amenities": [
74,
73
],
"show_on_website": true
}'Example response
{
"uid": "JSORJ9S5AY",
"cid": 292960,
"slug": "modern-apartment-in-naco-292960",
"name": "Modern apartment in Naco",
"category": 1,
"listing_type": [
1
],
"sale_price": 185000,
"currency_sale": "USD",
"room": 2,
"bathroom": 2,
"city": 156,
"sector": 2234,
"status": "1"
}{
"name": [
"This field is required."
]
}{
"category": [
"Invalid pk \"999\" - object does not exist."
]
}Categories
category is a number. The new-property form only offers the rows that belong to the agency’s country. Apartments are “Departamento” in Mexico, Colombia, Costa Rica, Panama and Peru.
| ID | Category |
|---|---|
| 1 | Apartment (Apartamento / Departamento) |
| 2 | House (Casa) |
| 3 | Building (Edificio) |
| 4 | Farm (Finca) |
| 5 | Hotel |
| 6 | Commercial space (Local comercial) |
| 7 | Industrial warehouse (Nave industrial) |
| 10 | Penthouse |
| 12 | Lot (Terreno) |
| 13 | Villa |
| 14 | Loft |
| 15 | Office (Oficina) |
| 16 | Studio (Estudio / Monoambiente) |
| 17 | Townhouse |
| 18 | House in a condominium (Casa en condominio) |
| 19 | Quinta |
| 20 | Warehouse (Bodega) |
| 21 | Commercial lot (Terreno comercial) |
Which feature fields the form shows
The API accepts the feature fields for any category. The form hides some of them. Apartments, penthouses and lofts (1, 10, 14) show rooms, terrace and floor, and hide land area. Houses and villas (2, 13) show land area and hide floor level. Lots (12) show built area and land area, and hide rooms. Industrial warehouses (7) add height, ramps, forklifts, frontage and depth when that section is enabled for the agency.
Condition
The form offers 9, 5, 2, 3 and 7. The API also stores 1 (New) and 6 (Exchange / Permuta) when a listing already has them.
| Value | Meaning |
|---|---|
| 9 | Ready (Listo) |
| 5 | In construction (En construcción). The form requires delivery_date. |
| 2 | Second use (Segundo uso) |
| 3 | Remodeled (Remodelada) |
| 7 | In plans (En planos) |
| 1 | New (Nuevo). Accepted by the API. The form does not offer it. |
Style
| Value | Meaning |
|---|---|
| 1 | American colonial |
| 2 | Spanish colonial |
| 3 | French colonial |
| 4 | Dutch colonial |
| 5 | German colonial |
| 6 | Mid-Atlantic colonial |
| 7 | Modern |
| 8 | Minimalist |
| 9 | Villa |
| 10 | Classic |
Area units
property_area_measurer, terrain_area_measurer and terrace_area_measurer accept Mt2, Pies, v2, Tarea and Hectarea. Omit them to store Mt2.
Currencies
Send each amount with its currency. The form offers DOP, USD, MXN, COP, CRC, GTQ, PEN, CLP, ARS, CLF, PYG, HNL and UYU. AlterEstate stores the price in that currency. You do not convert it to USD.
Common amenities
amenities is a list of feature IDs. These are the ones the property search highlights. To get every amenity available to your agency, including the ones it created, see Amenities.
| ID | Amenity |
|---|---|
| 74 | Pool |
| 73 | Gym |
| 516 | Terrace |
| 66 | Appliances included (línea blanca) |
| 21 | Elevator |
| 67 | Balcony |
| 27 | Patio |
| 97 | Study |
Status codes
| Status | Meaning |
|---|---|
| 201 | The property was created. The body is the saved record, including uid, cid and slug. |
| 400 | The body is invalid. The response names the field. |
| 401 | The account token is missing or invalid. |
| 500 | Server error while processing the request. |
- company and created_by are set from the token. Do not send them.
- listing_type, agents, captured_by, landlords, tags and amenities are lists. An empty list is stored as no selection.
- The public slug is generated from the title. You do not send slug on create.
- A duplicate enrollment does not reject the request. The listing is saved with status 8 when the agency requires unique titles.
Frequently asked questions
Can I set the status when I create a property?
No. AlterEstate assigns it. Published (1) when the user’s role publishes new listings, otherwise Pending (7). A duplicate title number can save the listing as Conflict (8). Change an existing property with PATCH /api/v1/properties/edit/{uid}/ and a status code.
Does this endpoint create a project?
No. It creates one property, the same record as the new-property form. Leave is_project_v2 unset.
Which fields does the new-property form require?
name and category are required by the API. The form also requires at least one listing_type and at least one agent. Owners and the captador are required only when the agency turned those settings on. Condition 5 requires delivery_date. Properties in the Dominican Republic require province, city and sector.
How do I upload photos with the property?
This request does not accept photos. Create the property, keep the uid, then upload the cover with PATCH /api/v1/properties/photos/featured/{uid}/ and the other photos with POST /api/v1/properties/photos/{uid}/. See Upload property photos.
Last updated . Questions? Emaildev@alterestate.com.