Skip to content

Loading…

Create a property

Creates a private CRM property. Publication is a separate operation.

POST/v1/properties

Requires the properties:write scope

On this page

Operation, pricing, location, area and characteristics are separate validated objects. Each operation needs its price: sale, rent or transfer. owner_id is required and must identify an existing holder contact in the same workspace.

subtype is required, just as in the CRM creation modal. Send a canonical key that belongs to type, such as {"type": "apartamento", "subtype": "atico"}. Display labels such as Ático, empty values and subtypes from another property type return 422.

typeAllowed subtype keys
apartamentoapartamento, atico, planta_baja, duplex, estudio
casaadosado, unifamiliar, multifamiliar, rustica, chalet, villa
locallocal_comercial
naveindustrial, warehouse, other
almacenajealmacen, trastero
oficinaon_high, ground_floor
terrenorustico, urbano, urbanizable, industrial, terciario, otros
aparcamientogaraje, parking, amarre
edificiohotel, edificio, apartahotel

The response is 201 with the new id. Creating a property does not make it public. Next: upload images, then publish.

Send an optional Idempotency-Key header (1–200 characters). For 24 hours the same key, API key and operation with the same body returns the original result, without creating another record. Reusing it with a different body returns 409.

Example request

curl -X POST "https://api.vestta.io/v1/properties" \
  -H "X-Api-Key: $VESTTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "operations": [
    "venta"
  ],
  "type": "apartamento",
  "subtype": "apartamento",
  "title": "Apartment in Madrid",
  "pricing": {
    "sale": 350000
  },
  "location": {
    "city": "Madrid",
    "address": "Calle de Serrano",
    "full_address": "Calle de Serrano 41, 3B",
    "coordinates": {
      "latitude": 40.425318,
      "longitude": -3.687934
    },
    "visibility": "approximate"
  },
  "area": {
    "total": 95
  },
  "bedrooms": 2,
  "bathrooms": 1,
  "owner_id": 71
}'

Authorization

  • X-Api-Keystringheaderrequired

    Your API key, AC_LIVE_<key_id>.<secret>. Authorization: ApiKey <key> is also accepted.

Request headers

  • idempotency-keystring1–200 chars

Request body

application/json · required

  • operationsarray of stringsrequired
  • typePropertyTyperequired
  • subtypePropertySubtyperequired

    Canonical subtype key for the property type: apartamento: apartamento, atico, planta_baja, duplex, estudio; casa: adosado, unifamiliar, multifamiliar, rustica, chalet, villa; local: local_comercial; nave: industrial, warehouse, other; almacenaje: almacen, trastero; oficina: on_high, ground_floor; terreno: rustico, urbano, urbanizable, industrial, terciario, otros; aparcamiento: garaje, parking, amarre; edificio: hotel, edificio, apartahotel. Responses return a Spanish display label instead of this key.

  • titlestringrequired1–300 chars
  • descriptionstring≤ 50000 chars default:
  • pricingPropertyPricingrequired
  • locationPropertyLocationrequired
  • areaPropertyArearequired
  • bedroomsinteger≥ 0≤ 1000 default: 0
  • bathroomsinteger≥ 0≤ 1000 default: 0
  • characteristicsPropertyCharacteristics
  • featuresarray of objects
  • owner_idintegerrequired≥ 1

    Required existing holder contact in the same business.

  • is_featuredboolean default: false
  • statusstring default: disponible

    One ofdisponiblereservada

Response

201 Successful response.

Example response
{
  "status": "ok",
  "id": 1355
}

Response fields

  • statusstring default: ok always ok
  • idintegerrequired

Errors

StatusWhen
401 UnauthorizedThe API key is missing, malformed, unknown, revoked or expired.
403 ForbiddenThe API key lacks the required scope, or the business plan does not include API access.
404 Not FoundThe resource does not exist in this business.
409 ConflictDuplicate contact or idempotency key reused with a different payload.
422 Unprocessable ContentA path parameter, query parameter or body field is invalid.
429 The API key reached its request limit. Wait for the number of seconds in `Retry-After` before retrying.
500 Internal Server ErrorUnexpected server error while processing the request.

Error bodies and how to handle each case: Errors.