# Crear propiedad

POST `https://api.bydomu.com/v1/properties`

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

Crea una propiedad en el inventario del CRM (nace en `DRAFT` si no se indica `status`). Exige lo del paso 1 del asistente (`title`, `type`, `transactionType`); el resto es opcional. Respeta el tope de propiedades del plan (`403 PLAN_LIMIT_REACHED`). El agente por defecto es quien creó la API key.

Permission required

`properties:write`

Required header

`X-API-Key` · secret key

Access level

Level 3 · with support review

## Headers

1 · all optional

`Idempotency-Key` string · optional

Clave única de la operación (8-128 caracteres de `[a-zA-Z0-9._:-]`). Un reintento con la misma clave y el mismo cuerpo devuelve la respuesta original sin repetir la operación. Vive 24 horas. 8–128 chars

## Body (JSON)

56 · 3 required

`title` string · **required**

5–200 chars

`type` string · **required**

APARTMENT · HOUSE · OFFICE · COMMERCIAL · LAND · WAREHOUSE · ROOM · FARM · OTHER

`transactionType` string · **required**

SALE · RENT · SALE_OR_RENT

`rentalServiceType` string · optional

BROKERAGE · MANAGEMENT · nullable

`address` string · optional

≤ 300 chars

`neighborhood` string · optional

≤ 100 chars

**See the other 50 parameters**

`city` string · optional

2–100 chars

`state` string · optional

≤ 100 chars

`country` string · optional

default "CO"

`zipCode` string · optional

≤ 20 chars

`latitude` number · optional

-90–90 · nullable

`longitude` number · optional

-180–180 · nullable

`locationPrecision` string · optional

EXACT · APPROXIMATE

`price` number · optional

≥ 0

`currency` string · optional

COP · USD · EUR · MXN · BRL · ARS · BOB · CAD · CLP · CRC · CUP · DOP · GBP · GTQ · HNL · NIO · PEN · PYG · UYU · VES · default "COP"

`rentPrice` number · optional

≥ 0 · nullable

`adminFee` number · optional

≥ 0 · nullable

`securityDeposit` number · optional

≥ 0 · nullable

`bedrooms` integer · optional

≥ 0 · nullable

`bathrooms` integer · optional

≥ 0 · nullable

`halfBathrooms` integer · optional

≥ 0 · nullable

`totalRooms` integer · optional

≥ 0 · nullable

`closets` integer · optional

≥ 0 · nullable

`parkingSpots` integer · optional

≥ 0 · nullable

`area` number · optional

≥ 0 · nullable

`builtArea` number · optional

≥ 0 · nullable

`privateArea` number · optional

≥ 0 · nullable

`floor` integer · optional

nullable

`totalFloors` integer · optional

≥ 0 · nullable

`yearBuilt` integer · optional

1900–2035 · nullable

`stratum` integer · optional

1–6 · nullable

`elevator` boolean · optional

`furnished` string · optional

UNFURNISHED · SEMI_FURNISHED · FURNISHED · nullable

`orientation` string · optional

NORTH · SOUTH · EAST · WEST · NORTHEAST · NORTHWEST · SOUTHEAST · SOUTHWEST · nullable

`petFriendly` boolean · optional

`garageType` string · optional

NONE · COVERED · UNCOVERED · DOUBLE · UNDERGROUND · nullable

`heatingType` string · optional

NONE · CENTRAL · ELECTRIC · GAS · RADIANT · nullable

`waterHeater` boolean · optional

`gasConnection` boolean · optional

`viewType` string · optional

NONE · CITY · MOUNTAIN · SEA · GARDEN · POOL · INTERIOR · PANORAMIC · nullable

`securityLevel` string · optional

NONE · BASIC · MEDIUM · HIGH · GATED_COMMUNITY · nullable

`propertyCondition` string · optional

NEW · EXCELLENT · GOOD · FAIR · NEEDS_RENOVATION · UNDER_CONSTRUCTION · PRE_SALE · nullable

`legalStatus` string · optional

CLEAR · MORTGAGE · LIEN · IN_PROCESS · INHERITANCE · nullable

`amenities` string[] · optional

`customFields` object · optional

`description` string · optional

≤ 5000 chars

`virtualTourUrl` string | string · optional

`tour3dUrl` string | string · optional

`videoUrl` string | string · optional

`internalNotes` string · optional

≤ 2000 chars

`status` string · optional

DRAFT · ACTIVE · RESERVED · SOLD · RENTED · INACTIVE · default "DRAFT"

`agentId` string · optional

`contactOwnerId` string · optional

nullable

`ownerWhatsappConsent` boolean · optional

`isFeatured` boolean · optional

`images` object[] · optional

## Response 201

`PropertyRecord` · 51 fields

**`data` Propiedad del CRM tal como queda al crearla o actualizarla.**

`id` string

`code` string Código legible de la propiedad

`title` string

`description` string

`type` string APARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSE

`transactionType` string SALE, RENT, SALE_OR_RENT

`rentalServiceType` string BROKERAGE, MANAGEMENT

`status` string DRAFT, ACTIVE, RESERVED, SOLD, RENTED, INACTIVE

`price` string Precio de venta, o canon si es solo arriendo. Número decimal serializado como texto.

`rentPrice` string Canon mensual, solo en SALE_OR_RENT. Número decimal serializado como texto.

`currency` string

`adminFee` string Administración mensual. Número decimal serializado como texto.

`securityDeposit` string Número decimal serializado como texto.

`neighborhood` string

`city` string

`state` string

`country` string

`bedrooms` integer

`bathrooms` integer

`halfBathrooms` integer

`parkingSpots` integer

`area` number Área en m²

`builtArea` number Área construida en m²

`floor` integer

`stratum` integer Estrato socioeconómico (1-6)

`yearBuilt` integer

`elevator` boolean

`petFriendly` boolean

`furnished` string UNFURNISHED, SEMI_FURNISHED, FURNISHED

`amenities` any IDs de amenidades

`virtualTourUrl` string

`videoUrl` string

`tour3dUrl` string

`isFeatured` boolean

`viewCount` integer

`agentId` string

`createdAt` string

`updatedAt` string

`address` string

`latitude` number

`longitude` number

`locationPrecision` string EXACT, APPROXIMATE

`internalNotes` string Notas internas: solo en el CRM

`customFields` any Campos personalizados

`publishToPortal` boolean

`contactOwnerId` string Propietario (contacto)

**`images[]` id · url · thumbUrl · order · isPrimary · caption · isVirtualStaging · propertyId**

`id` string

`url` string

`thumbUrl` string

`order` integer

`isPrimary` boolean

`caption` string

`isVirtualStaging` boolean

`propertyId` string

**`tourScenes[]` id · imageUrl · thumbUrl · label · order**

`id` string

`imageUrl` string

`thumbUrl` string

`label` string

`order` integer

**`agent` id · firstName · lastName · email**

`id` string

`firstName` string

`lastName` string

`email` string

**`contactOwner` id · firstName · lastName · phone · email · type · documentType · documentNumber**

`id` string

`firstName` string

`lastName` string

`phone` string `null` si el contacto llegó por un canal sin número (Instagram, Facebook, chat de la web, correo o WhatsApp con usuario y número oculto)

`email` string

`type` string CLIENT, OWNER, BOTH

`documentType` string CC, CE, NIT, PASSPORT, DNI, RUC

`documentNumber` string

**`tags[]` propertyId · tagId · tag**

`propertyId` string

`tagId` string

**`tag` id · name · color**

`id` string

`name` string

`color` string

## Possible errors

shaped as `{ "error": { "code", "message" } }`

- **400** Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
- **401** UNAUTHORIZED
- **402** PAYMENT_REQUIRED
- **403** FORBIDDEN
- **409** DUPLICATE
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl -X POST "https://api.bydomu.com/v1/properties" \
  -H "X-API-Key: $BYDOMU_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Apartamento en Chapinero con vista",
  "type": "APARTMENT",
  "transactionType": "SALE",
  "price": 450000000,
  "currency": "COP",
  "city": "Bogotá",
  "neighborhood": "Chapinero",
  "bedrooms": 3,
  "bathrooms": 2,
  "area": 85,
  "status": "ACTIVE",
  "images": [
    {
      "url": "https://cdn.bydomu.com/props/clx1prop001/1.jpg",
      "order": 0,
      "isPrimary": true
    }
  ]
}'
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.properties.create({
  "title": "Apartamento en Chapinero con vista",
  "type": "APARTMENT",
  "transactionType": "SALE",
  "price": 450000000,
  "currency": "COP",
  "city": "Bogotá",
  "neighborhood": "Chapinero",
  "bedrooms": 3,
  "bathrooms": 2,
  "area": 85,
  "status": "ACTIVE",
  "images": [
    {
      "url": "https://cdn.bydomu.com/props/clx1prop001/1.jpg",
      "order": 0,
      "isPrimary": true
    }
  ]
});
```

Python:

```python
import os, requests

r = requests.post(
    "https://api.bydomu.com/v1/properties",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]},
    json={
        "title": "Apartamento en Chapinero con vista",
        "type": "APARTMENT",
        "transactionType": "SALE",
        "price": 450000000,
        "currency": "COP",
        "city": "Bogotá",
        "neighborhood": "Chapinero",
        "bedrooms": 3,
        "bathrooms": 2,
        "area": 85,
        "status": "ACTIVE",
        "images": [
            {
                "url": "https://cdn.bydomu.com/props/clx1prop001/1.jpg",
                "order": 0,
                "isPrimary": True
            }
        ]
    }
)
data = r.json()
```

**Response · 201 · example**

```json
{
  "data": {
    "id": "clx1prop001",
    "code": "P-0042",
    "title": "Apartamento en Chapinero con vista",
    "description": "Apartamento de 85 m² con balcón y vista a los cerros.",
    "type": "APARTMENT",
    "transactionType": "SALE",
    "rentalServiceType": "BROKERAGE",
    "status": "DRAFT",
    "price": "450000000.00",
    "rentPrice": "3500000.00",
    "currency": "COP",
    "adminFee": "380000.00",
    "securityDeposit": "3500000.00",
    "neighborhood": "Chapinero",
    "city": "Bogotá",
    "state": "Cundinamarca",
    "country": "CO",
    "bedrooms": 3,
    "bathrooms": 2,
    "halfBathrooms": 1,
    "parkingSpots": 1,
    "area": 85,
    "builtArea": 80,
    "floor": 8,
    "stratum": 4,
    "yearBuilt": 2015,
    "elevator": true,
    "petFriendly": true,
    "furnished": "UNFURNISHED",
    "amenities": [
      "pool"
    ],
    "virtualTourUrl": "https://my.matterport.com/show/?m=abc123",
    "videoUrl": "https://youtu.be/abc123",
    "tour3dUrl": "https://cdn.bydomu.com/tours/clx1prop001/model.splat",
    "isFeatured": false,
    "viewCount": 128,
    "agentId": "clx1usr001",
    "createdAt": "2026-08-01T14:30:00.000Z",
    "updatedAt": "2026-09-20T10:00:00.000Z",
    "address": "Cra 7 #45-12",
    "latitude": 4.648625,
    "longitude": -74.062815,
    "locationPrecision": "EXACT",
    "internalNotes": "Llaves en portería.",
    "customFields": {},
    "publishToPortal": true,
    "contactOwnerId": "clx1con007",
    "images": [
      {
        "id": "clx1img001",
        "url": "https://cdn.bydomu.com/props/clx1prop001/1.jpg",
        "thumbUrl": "https://cdn.bydomu.com/props/clx1prop001/1-thumb.jpg",
        "order": 0,
        "isPrimary": true,
        "caption": "Sala comedor",
        "isVirtualStaging": false,
        "propertyId": "clx1prop001"
  …
```
