# Properties

URL: https://api-docs.vestta.io/properties

Create, edit and publish properties, and read their protected public catalogue.

A property is a listing managed in Vestta: an apartment for rent, a house for sale, a commercial unit offered for transfer. The API exposes the workspace's **public catalogue** — the same listings the agency chooses to publish — so you can show them on a website, feed another product or keep an external index in sync.

Reading the catalogue needs `properties:read`. Creating, updating and uploading needs `properties:write`. Publication and processing status need `properties:publish`. See [Publishing properties](/publishing).

## Endpoints

- `GET /v1/properties` — List published properties (https://api-docs.vestta.io/properties/list)
- `POST /v1/properties` — Create a property (https://api-docs.vestta.io/properties/create)
- `GET /v1/properties/{property_id}` — Retrieve a published property (https://api-docs.vestta.io/properties/retrieve)
- `PATCH /v1/properties/{property_id}` — Update a property (https://api-docs.vestta.io/properties/update)
- `POST /v1/properties/{property_id}/images/uploads` — Prepare original image uploads (https://api-docs.vestta.io/properties/uploads)
- `POST /v1/properties/{property_id}/images/uploads/{upload_id}/complete` — Complete image uploads (https://api-docs.vestta.io/properties/complete-uploads)
- `GET /v1/properties/{property_id}/publication` — Retrieve publication (https://api-docs.vestta.io/properties/publication-status)
- `PUT /v1/properties/{property_id}/publication` — Set property publication (https://api-docs.vestta.io/properties/publication)
## What is public

A property is returned only when, in Vestta:

- it is marked as **public**, and
- it is saved and is not a draft.

The API returns explicitly published properties regardless of their commercial status. Drafts are excluded. The response only carries listing data: public images with independent opaque URLs, processed videos and the characteristics shown in a listing. New photos are watermarked; migration-grandfathered photos may remain unmarked. The agency sets the watermark position and size in Vestta under **Configuración › Datos y marca**. Internal data — notes, owner and agency details, commission and captation figures, price history, portal settings — is never sent.

### Address privacy

Each property has an address privacy setting in Vestta (**Dirección exacta**, **Solo zona / calle** or **Ocultar ubicación**). Every location field follows it, and `specs.address_privacy` tells you which one applies:

| Setting | `address` | `lat` / `lon` | `postal_code` |
| --- | --- | --- | --- |
| `public` | The full address | Exact | Returned |
| `approximate` | The approximate address entered in Vestta, such as a neighbourhood or street | Rounded to 2 decimals (about 1 km) | Returned |
| `hidden` | Omitted | Omitted | Omitted |

`city`, `province` and `country` are always returned when set. Properties without a privacy setting are treated as `approximate`, like in the Vestta app. `specs.building_name` is only included when the address is public.

When you draw approximate properties on a map, show an area rather than a pin: the coordinates mark a ~1 km cell, not the building.

## Operations and prices

A property can be offered for more than one operation at once, so `operation` may hold several values separated by commas, such as `venta,alquiler`. Each operation has its own price:

| Operation | Value | Price field |
| --- | --- | --- |
| Sale | `venta` | `price` |
| Rent (monthly) | `alquiler` | `specs.price_calc.price_alq` |
| Transfer | `traspaso` | `specs.price_calc.price_trasp` |

When you filter or sort by price, the `operation` filter decides which of these fields is used. See [List properties](/properties/list#prices).

## The property object

List properties and Retrieve a property return the same object.

- `id` (integer, required): Numeric property ID. Use it with Retrieve a property.
- `operation` (string, optional, nullable): Operations the property is offered for: `venta`, `alquiler`, `traspaso`, or several joined by commas (e.g. `venta,alquiler`).
- `type` (string, optional, nullable): Property type key, e.g. `apartamento`, `casa`, `local`, `oficina`, `terreno` or `edificio`.
- `subtype` (string, optional, nullable): Subtype as a Spanish display label (e.g. `Ático`, `Local Comercial`), or `Sin Especificar`.
- `title` (string, optional, nullable): Listing title. May be empty.
- `price` (number, optional, nullable): Sale price in euros. Rent and transfer prices are in `specs.price_calc`.
- `size_total` (number, optional, nullable): Total size in m².
- `bedrooms` (integer, optional, nullable)
- `bathrooms` (integer, optional, nullable)
- `postal_code` (string, optional, nullable): Omitted when the property's location is hidden.
- `description` (string, optional, nullable): Listing description as HTML.
- `images` (array of objects, optional): Opaque public copies. New photos are watermarked; legacy copies may remain unmarked. Original paths and IDs are never included.
  - `id` (string, required)
  - `url` (string, required): Permanent opaque public-copy URL. New photos are watermarked; migrated legacy copies may remain unmarked. Never an original or upload URL.
  - `order` (integer, optional, default 1)
  - `is_primary` (boolean, optional, default false)
  - `title` (string, optional, default )
- `videos` (array of objects, optional, nullable): Processed public videos.
  - `id` (string, required)
  - `title` (string, optional, nullable)
  - `order` (integer, optional, nullable)
  - `url` (string, optional, nullable)
  - `hls_url` (string, optional, nullable)
  - `thumbnail_url` (string, optional, nullable)
  - `embed_url` (string, optional, nullable)
- `specs` (PublicationSpecs, optional, nullable): Listing characteristics. Keys depend on the property type. `price_calc.price_alq` and `price_calc.price_trasp` hold the monthly rent and transfer price; `address_privacy` is `public`, `approximate` or `hidden`; `building_name` is only present when the address is public.
  - `translations` (TranslationSpec, optional, nullable): Traducciones de las descripciones
    - `ca` (TranslatedDescription, optional, nullable): Traduccion en catalán de la descripción
      - `title` (string, optional, nullable): Título de la descripción
      - `description` (string, optional, nullable): Descripción
    - `en` (TranslatedDescription, optional, nullable): Traduccion en ingles de la descripción
      - `title` (string, optional, nullable): Título de la descripción
      - `description` (string, optional, nullable): Descripción
    - `fr` (TranslatedDescription, optional, nullable): Traduccion en francés de la descripción
      - `title` (string, optional, nullable): Título de la descripción
      - `description` (string, optional, nullable): Descripción
    - `de` (TranslatedDescription, optional, nullable): Traduccion en alemán de la descripción
      - `title` (string, optional, nullable): Título de la descripción
      - `description` (string, optional, nullable): Descripción
    - `pt` (TranslatedDescription, optional, nullable): Traduccion en portuges de la descripción
      - `title` (string, optional, nullable): Título de la descripción
      - `description` (string, optional, nullable): Descripción
    - `it` (TranslatedDescription, optional, nullable): Traduccion en italiano de la descripción
      - `title` (string, optional, nullable): Título de la descripción
      - `description` (string, optional, nullable): Descripción
  - `usable_area` (number, optional, nullable, ≥ 0): Metros cuadrados útiles
  - `plot_size` (number, optional, nullable, ≥ 0): Metros cuadrados parcela
  - `size_built` (number, optional, nullable, ≥ 0): Superficie construida
  - `porch_size` (number, optional, nullable, ≥ 0): Metros cuadrados porche
  - `size_terraces` (number, optional, nullable, ≥ 0): Metros cuadrados terrazas
  - `attic_size` (number, optional, nullable, ≥ 0): Metros cuadrados ático
  - `storage_dimensions` (number, optional, nullable): Dimensiones del trastero
  - `doble_bedrooms` (integer, optional, nullable, ≥ 0): Número de habitaciones dobles
  - `suite_bathrooms` (integer, optional, nullable, ≥ 0): Número de baños en suite
  - `num_terraces` (integer, optional, nullable, ≥ 0): Número de terrazas
  - `conservation` (string, optional, nullable): Estado de conservación
  - `floor` (string, optional, nullable): Planta canónica para portales
  - `house_floors` (integer, optional, nullable, ≥ 1): Número de plantas de una casa
  - `elevator` (boolean, optional, nullable): Tiene ascensor (0/1 o Sí/No)
  - `views` (string, optional, nullable): Vistas de la propiedad
  - `orientation` (string, optional, nullable): Orientación (norte, sur, este, oeste)
  - `energy_certificate` (string, optional, nullable): Certificado energético A-G
  - `emissions` (string, optional, nullable): Emisiones A-G
  - `energy_consumption_value` (number, optional, nullable, ≥ 1, ≤ 999): Consumo (kWh/m² año)
  - `emissions_value` (number, optional, nullable, ≥ 1, ≤ 999): Emisiones (kg CO₂/m² año)
  - `height` (number, optional, nullable): Altura del local
  - `facade_meters` (number, optional, nullable): Metros de fachada
  - `meters_showcase` (number, optional, nullable): Metros de escaparate
  - `entrace_type` (string, optional, nullable): Tipo de entrada de la oficina
  - `position` (string, optional, nullable): 1ª/2ª Linea del mar
  - `offices` (integer, optional, nullable, ≥ 0): Número de despachos
  - `meeting_rooms` (integer, optional, nullable, ≥ 0): Número de salas de reuniones
  - `camino` (string, optional, nullable): Tipo de suelo
  - `terrain_extension` (string, optional, nullable): Tamaño (Grande/Pequeño)
  - `topography` (string, optional, nullable): Topografía del terreno
  - `num_seats` (integer, optional, nullable, ≥ 0): Número de plazas
  - `dimensions` (string, optional, nullable): Dimensiones del aparcamiento
  - `turistic_license` (string, optional, nullable): Licencia turística
  - `construction_year` (integer, optional, nullable): Año de construcción
  - `exposure` (string, optional, nullable): Interior o Exterior
  - `style` (string, optional, nullable): Conservación
  - `num_viviendas` (integer, optional, nullable): Número de viviendas
  - `num_locales` (integer, optional, nullable): Número de locales
  - `num_ascensores` (integer, optional, nullable): Número de ascensores
  - `num_parkings` (integer, optional, nullable, ≥ 0): Número de parkings incluidos
  - `num_floors` (integer, optional, nullable): Número de plantas
  - `luxury_property` (boolean, optional, nullable): Propiedad de lujo
  - `holiday_renting` (boolean, optional, nullable): Alquiler vacacional
  - `temporal_renting` (boolean, optional, nullable): Alquiler temporal
  - `purchase_option_rental` (boolean, optional, nullable): Alquiler con opción a compra
  - `address_privacy` (string, optional, nullable): Privacidad de la ubicación en portales: public | approximate | hidden
  - `activities` (ActivitiesSpec, optional, nullable): Actividades permitidas
    - `predefined` (array of strings, optional): Actividades predefinidas
    - `custom` (array of strings, optional): Actividades personalizadas
  - `num_entrances` (NumEntrancesSpec, optional, nullable): Número de entradas
    - `total` (integer, optional, ≥ 0, default 0): Total de entradas
    - `peaton_entrances` (integer, optional, ≥ 0, default 0): Entradas de peatones
    - `moto_entrances` (integer, optional, ≥ 0, default 0): Entradas de motos
    - `van_entrances` (integer, optional, ≥ 0, default 0): Entradas de furgoneta
    - `car_entrances` (integer, optional, ≥ 0, default 0): Entradas de coche
  - `floor_breakdown` (FloorBreakdownSpec, optional, nullable): Desglose de plantas
    - `base_floor` (integer, optional, default 0): Metros ² de la planta baja
    - `first_floor` (integer, optional, default 0): Metros ² de la primera planta
    - `second_floor` (integer, optional, default 0): Metros ² de la segunda planta
  - `price_calc` (PublicPrices, optional, nullable)
    - `price_alq` (number, optional, nullable, ≥ 0)
    - `price_trasp` (number, optional, nullable, ≥ 0)
  - `building_name` (string, optional, nullable): Published only when address privacy is public.
- `features` (array of objects, optional, nullable): Typed amenities. `label` is a display string; `key` is stable.
  - `key` (string, required, 1–100 chars)
  - `label` (string, required, 1–200 chars)
  - `value` (string | boolean | integer | number, required)
  - `isextra` (boolean, optional, default false)
- `status` (string, optional, nullable): Commercial status of the explicitly published property. Drafts are never returned.
- `address` (string, optional, nullable): Follows the property's address privacy: the full address when public, the approximate address when approximate, omitted when hidden.
- `city` (string, optional, nullable)
- `province` (string, optional, nullable)
- `country` (string, optional, nullable)
- `lat` (number, optional, nullable): Latitude in decimal degrees. Exact when the address is public, rounded to 2 decimals (about 1 km) when approximate, omitted when hidden.
- `lon` (number, optional, nullable): Longitude in decimal degrees, with the same precision rules as `lat`.
- `is_featured` (boolean, optional, nullable): Whether the business marked the property as featured.
- `created_at` (string, optional, nullable): ISO 8601 timestamp with UTC offset.
- `updated_at` (string, optional, nullable): ISO 8601 timestamp with UTC offset. The default sort key.
`specs` holds additional characteristics whose keys depend on the property type — floor, orientation, energy certificate, rental flags and so on. Read the keys you need and ignore the rest.
