# Detalle de contacto

GET `https://api.bydomu.com/v1/contacts/{id}`

Ficha completa: dueño, últimos 5 negocios, etiquetas, relaciones con otros contactos, origen, negocio abierto y enlaces compartidos. Nunca incluye mensajes ni el token del portal del comprador.

Permiso que pide

`contacts:read`

Encabezado obligatorio

`X-API-Key` · clave secreta

Nivel de acceso

Nivel 2 · automático en Inmobiliaria Pro

## Parámetros de ruta

1 · obligatorios

`id` string · **obligatorio**

ID del contacto

## Respuesta 200

`ContactDetail` · 39 campos

**`data` id · code · firstName · lastName · email · phone · phone2 · source · status · type · documentType · documentNumber · score · notes · budget · currency · lookingFor · preferredType · preferredCity · preferredNeighborhood · minBedrooms · minBathrooms · minArea · preferredTransactionType · subscribedToAlerts · whatsappOptIn · marketingOptIn · ownerId · createdAt · updatedAt · owner · deals · tags · buyerPortal · relationsFrom · relationsTo · origin · openDeal · sharedLinks**

`id` string

`code` string Código legible del contacto

`firstName` string

`lastName` string

`email` 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)

`phone2` string

`source` string WHATSAPP, METROCUADRADO, FINCARAIZ, WEBSITE, REFERRAL, WALK_IN

`status` string NEW, CONTACTED, QUALIFIED, NEGOTIATING, WON, LOST

`type` string CLIENT, OWNER, BOTH

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

`documentNumber` string

`score` integer Puntaje 0-100

`notes` string

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

`currency` string

`lookingFor` string

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

`preferredCity` string

`preferredNeighborhood` string

`minBedrooms` integer

`minBathrooms` integer

`minArea` number

`preferredTransactionType` string

`subscribedToAlerts` boolean

`whatsappOptIn` boolean

`marketingOptIn` boolean

`ownerId` string Agente dueño del contacto

`createdAt` string

`updatedAt` string

**`owner` id · firstName · lastName · email**

`id` string

`firstName` string

`lastName` string

`email` string

**`deals[]` Últimos 5 negocios**

`id` string

`title` string

`status` string OPEN, WON, LOST

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

**`placements[]` stage · pipeline**

`stage` object

`pipeline` object

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

`contactId` string

`tagId` string

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

`id` string

`name` string

`color` string

**`buyerPortal` Portal del comprador, sin su token de acceso**

`id` string

`isActive` boolean

`lastAccessedAt` string

`expiresAt` string

`createdAt` string

**`relationsFrom[]` id · type · notes · toContact**

`id` string

`type` string

`notes` string

**`toContact` id · firstName · lastName · phone · email · type · score**

`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

`score` integer

**`relationsTo[]` id · type · notes · fromContact**

`id` string

`type` string

`notes` string

**`fromContact` id · firstName · lastName · phone · email · type · score**

`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

`score` integer

**`origin` De dónde llegó el contacto**

`kind` string web_form, web_finder, web_chat, web_whatsapp, shared_link, domu_catalog

`at` string

**`property` id · title**

`id` string

`title` string

**`openDeal` Negocio abierto más relevante del contacto**

`id` string

`title` string

`stageName` string

`position` integer

`count` integer

`isWon` boolean

`propertyTitle` string

**`sharedLinks[]` Enlaces de propiedades compartidos con el contacto (hasta 20)**

`id` string

`createdAt` string

`viewCount` integer

`lastViewedAt` string

**`property` id · title**

`id` string

`title` string

## Errores posibles

con la forma `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **404** NOT_FOUND
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/contacts/clx1con001" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

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

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

const { data } = await bydomu.contacts.get("clx1con001");
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/contacts/clx1con001",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Respuesta · 200 · ejemplo**

```json
{
  "data": {
    "id": "clx1con001",
    "code": "C-0107",
    "firstName": "María",
    "lastName": "González",
    "email": "maria.gonzalez@email.com",
    "phone": "+573001234567",
    "phone2": "+573109876543",
    "source": "WHATSAPP",
    "status": "NEW",
    "type": "CLIENT",
    "documentType": "CC",
    "documentNumber": "1020304050",
    "score": 75,
    "notes": "Busca apartamento cerca al trabajo.",
    "budget": "350000000.00",
    "currency": "COP",
    "lookingFor": "Apartamento de 3 habitaciones",
    "preferredType": "APARTMENT",
    "preferredCity": "Bogotá",
    "preferredNeighborhood": "Chapinero",
    "minBedrooms": 3,
    "minBathrooms": 2,
    "minArea": 70,
    "preferredTransactionType": "SALE",
    "subscribedToAlerts": true,
    "whatsappOptIn": true,
    "marketingOptIn": false,
    "ownerId": "clx1usr001",
    "createdAt": "2026-01-15T14:30:00.000Z",
    "updatedAt": "2026-09-20T09:15:00.000Z",
    "owner": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez",
      "email": "carlos@inmobiliariaandes.co"
    },
    "deals": [
      {
        "id": "clx1deal001",
        "title": "Venta Apto Chapinero",
        "status": "OPEN",
        "value": "350000000.00",
        "placements": [
          {
            "stage": {
              "id": "clx1stg002",
              "name": "Visita",
              "color": "#6366F1"
            },
            "pipeline": {
              "id": "clx1pip001",
              "name": "Ventas"
            }
          }
        ]
      }
    ],
    "tags": [
  …
```
