Skip to content
AlterEstate

Create a property

POSThttps://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

FieldTypeDescription
namerequiredstringPublic title, the “Título del anuncio” on the form. Maximum 300 characters. Example: Modern apartment in Naco.
private_namestringInternal name, such as the building, tower or unit. Shown when the agency enables private names. Maximum 500 characters. Example: Torre María, piso 4.
categoryrequirednumberCategory ID. See Categories below. The form offers the categories of the agency’s country. Example: 1.
ikeystringYour internal property code. Example: NACO-120.
short_descriptionstringShort text used as the search-result description. Example: Bright apartment close to parks and restaurants..
conditionstringCondition code. See Condition below. When it is 5 (in construction), the form also requires delivery_date. Example: 9.
stylestringArchitectural style code. See Style below. Example: 7.
year_constructionstringYear the property was built. Example: 2018.
delivery_datedateEstimated delivery date, YYYY-MM-DD. Required by the form when condition is 5. Example: 2026-12-01.
featuredbooleanMark the listing as featured. Example: false.
exclusivebooleanMark the listing as exclusive. The form shows this when the user can set exclusive properties. Example: true.
show_on_websitebooleanWhether the listing is visible on the agency website. Defaults to true. Example: true.

People

FieldTypeDescription
agentsstring[]UIDs of the agents responsible for the listing. The form requires at least one. Get uids from Users. Example: ["IZHIZ6C3Z6"].
captured_bystring[]UIDs of the agents who captured the listing. The form requires this when the agency shows the captador field. Example: ["IZHIZ6C3Z6"].
landlordsstring[]UIDs of the owner contacts. The form requires at least one when the agency makes owners mandatory. Create the contact first. Example: ["C0NT4CTUID"].
teamnumberTeam ID, when the agency uses teams. Example: 4.
tagsnumber[]Tag IDs already created for properties in the agency. Example: [12, 18].
private_notesstringInternal notes. They are not published. HTML from the editor is accepted. Example: Keys are with the doorman..
registration_emailstringEmail that receives registration notices for this listing. Example: owner@example.com.

Operation and price

FieldTypeDescription
listing_typenumber[]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_pricenumberSale price, in currency_sale. Send it when listing_type includes 1. Example: 185000.
currency_salestringCurrency of sale_price. See Currencies below. Example: USD.
furnished_sale_pricenumberFurnished sale price, in currency_sale_furnished. Example: 210000.
currency_sale_furnishedstringCurrency of furnished_sale_price. Example: USD.
rent_pricenumberLong-term rent price, in currency_rent. Send it when listing_type includes 2. Example: 1200.
currency_rentstringCurrency of rent_price. Example: USD.
furnished_pricenumberFurnished long-term rent price, in currency_furnished. Example: 1500.
currency_furnishedstringCurrency of furnished_price. Example: USD.
rental_pricenumberShort-term rent price, in currency_rental. Send it when listing_type includes 3. Example: 150.
currency_rentalstringCurrency of rental_price. Example: USD.
maintenance_feenumberMaintenance fee, in currency_maintenance. Example: 150.
currency_maintenancestringCurrency of maintenance_fee. Example: USD.
comisionstringSale commission as a percent, without the % sign. Example: 3 means 3%. The form can require it for a sale. Example: 3.
rent_comisionstringRent commission as a number of months. Example: 1 means one month. The form can require it for a rent. Example: 1.
show_on_propertybankbooleanShare the listing on the collaboration network (Property Bank). Example: true.
share_comisionnumberPercent of the commission shared with a collaborating agency. Used when show_on_propertybank is true. Example: 50.
collaboration_notesstringNotes for collaborating agencies. Used when show_on_propertybank is true. Example: Showings on weekdays after 10:00..

Features

FieldTypeDescription
roomnumberBedrooms. The form shows this for apartments, houses, penthouses, lofts, villas, hotels and buildings. Example: 2.
bathroomnumberBathrooms. Example: 2.
half_bathroomsnumberHalf bathrooms. Example: 1.
parkinglotnumberParking spaces. Example: 1.
floor_levelnumberFloor the unit is on. The form shows this for apartments, penthouses, lofts, offices and commercial spaces. Example: 4.
total_floorsnumberFloors in the building. The form shows this for apartments, houses, penthouses, buildings and villas. Example: 8.
property_areanumberBuilt area. Pair it with property_area_measurer. Example: 110.
property_area_measurerstringUnit of property_area. See Area units below. Default Mt2. Example: Mt2.
terrain_areanumberLand area. The form shows this for houses, villas, lots, farms, buildings and commercial categories. Example: 180.
terrain_area_measurerstringUnit of terrain_area. Default Mt2. Example: Mt2.
terrace_areanumberTerrace area. The form shows this for apartments, houses, penthouses and lofts. Example: 18.
terrace_area_measurerstringUnit of terrace_area. Default Mt2. Example: Mt2.
canbuildbooleanWhether construction is allowed on the land. The form shows this when land area is shown. Example: true.
area_frontnumberFrontage, in square meters on the form. Shown for industrial warehouses when that section is enabled. Example: 20.
area_deepnumberDepth, in square meters on the form. Shown for industrial warehouses when that section is enabled. Example: 40.
height_minstringMinimum interior height. Shown for industrial warehouses. Example: 6.
height_maxstringMaximum interior height. Shown for industrial warehouses. Example: 9.
rampsnumberNumber of ramps. Shown for industrial warehouses. Example: 1.
fork_liftsnumberNumber of forklifts. Shown for industrial warehouses. Example: 0.

Location

FieldTypeDescription
countrynumberCountry ID. See Locations. 149 is the Dominican Republic. Example: 149.
provincenumberProvince ID. See Locations. Example: 31.
citynumberCity ID. See Locations. Example: 156.
sectornumberSector (neighborhood) ID. See Locations. The form requires province, city and sector for the Dominican Republic. Example: 2234.
addressstringStreet address. Maximum 500 characters. Example: Calle El Recodo 12.
address2stringAdditional address line, such as apartment or floor. Maximum 500 characters. Example: Apto 4B.
zip_codestringPostal code. Example: 10111.
latitudestringLatitude. The form fills this from the address and lets you adjust the map pin. Example: 18.4762.
longitudestringLongitude. Example: -69.9312.
hide_locationbooleantrue 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.
stratusstringSocioeconomic stratum. The form shows this field for agencies in Colombia. Example: 5.

Description and amenities

FieldTypeDescription
descriptionstringFull description. The form stores HTML from the editor. Send plain text or HTML you trust. Example: Bright apartment with a balcony..
amenitiesnumber[]Amenity IDs. Same IDs as the features filter on List properties. See Common amenities below. Example: [74, 73].
custom_fieldsobjectAgency 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

FieldTypeDescription
keysnumberHow many sets of keys the agency holds. Example: 2.
has_signbooleanWhether a for-sale or for-rent sign is on the property. Example: false.
b2bbooleantrue marks the listing as B2B. The form shows this when the agency uses B2B. Example: false.
virtual_tourstringVirtual tour URL. Send a URL, not embed markup. Example: https://example.com/tour.
youtubeiframestringYouTube video URL. Send a URL, not embed markup. Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ.
mapiframestringMap embed URL. Example: https://maps.google.com/?q=18.4762,-69.9312.
external_routestringPublic URL of this listing on another website. Maximum 255 characters. Example: https://example.com/propiedad/apartamento-naco.

Cadastral

FieldTypeDescription
enrollmentstringTitle 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_datestringTitle date, as text. Example: 2016-04-12.
cadastral_districtstringCadastral district. Example: 01.
cadastral_solarstringCadastral lot (solar). Example: 12.
blockstringBlock (manzana). Example: 4.
demarcationbooleanWhether the property has a demarcation (deslinde). Example: false.
hasLoanbooleanWhether there is a lien (gravamen). Example: false.
current_debtnumberCurrent debt amount, when hasLoan is true. Example: 25000.
bank_creditorstringCreditor of the debt, when hasLoan is true. Example: Banco Popular.
debt_time_leftstringTime left on the debt, as text. Example: 8 years.

Example request

POST
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

201 Created
{
  "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"
}
400 Bad Request
{
  "name": [
    "This field is required."
  ]
}
400 Invalid category
{
  "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.

IDCategory
1Apartment (Apartamento / Departamento)
2House (Casa)
3Building (Edificio)
4Farm (Finca)
5Hotel
6Commercial space (Local comercial)
7Industrial warehouse (Nave industrial)
10Penthouse
12Lot (Terreno)
13Villa
14Loft
15Office (Oficina)
16Studio (Estudio / Monoambiente)
17Townhouse
18House in a condominium (Casa en condominio)
19Quinta
20Warehouse (Bodega)
21Commercial 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.

ValueMeaning
9Ready (Listo)
5In construction (En construcción). The form requires delivery_date.
2Second use (Segundo uso)
3Remodeled (Remodelada)
7In plans (En planos)
1New (Nuevo). Accepted by the API. The form does not offer it.

Style

ValueMeaning
1American colonial
2Spanish colonial
3French colonial
4Dutch colonial
5German colonial
6Mid-Atlantic colonial
7Modern
8Minimalist
9Villa
10Classic

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.

IDAmenity
74Pool
73Gym
516Terrace
66Appliances included (línea blanca)
21Elevator
67Balcony
27Patio
97Study

Status codes

StatusMeaning
201The property was created. The body is the saved record, including uid, cid and slug.
400The body is invalid. The response names the field.
401The account token is missing or invalid.
500Server 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.