ByDomuDevelopers

Crear contacto

POSThttps://api.bydomu.com/v1/contacts

Crea un contacto en el CRM. El teléfono es único por organización: si ya existe responde 409 DUPLICATE. Respeta el tope de contactos del plan (403 PLAN_LIMIT_REACHED). El dueño por defecto es quien creó la API key. La respuesta no incluye las etiquetas asignadas con tags.

Permiso que pide

contacts:write

Encabezado obligatorio

X-API-Key · clave secreta

Nivel de acceso

Nivel 3 · con revisión de soporte

Encabezados

1 · todos opcionales
Idempotency-Keystring · opcional
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

Cuerpo (JSON)

28 · 2 obligatorios
firstNamestring · obligatorio
2–100 chars
phonestring · obligatorio
lastNamestring · opcional
≤ 100 chars
emailstring · opcional
email
phone2string · opcional
sourcestring · opcional
WHATSAPP · METROCUADRADO · FINCARAIZ · WEBSITE · REFERRAL · WALK_IN · SOCIAL_MEDIA · PHONE · INMUEBLES24 · VIVANUNCIOS · LAMUDI · PROPIEDADES_COM · URBANIA · ADONDEVIVIR · PLUSVALIA · ZAP_IMOVEIS · VIVAREAL · OLX · IMOVELWEB · PORTAL_INMOBILIARIO · TOCTOC · ZONAPROP · ARGENPROP · OTHER · por defecto "OTHER"
Ver los otros 22 parámetros
statusstring · opcional
NEW · CONTACTED · QUALIFIED · NEGOTIATING · WON · LOST · INACTIVE · por defecto "NEW"
typestring · opcional
CLIENT · OWNER · BOTH · por defecto "CLIENT"
documentTypestring · opcional
CC · CE · NIT · PASSPORT · DNI · RUC · CURP · RFC · CPF · CNPJ · RG · RUT · CUIT · SSN · EIN · OTHER · nullable
documentNumberstring · opcional
≤ 50 chars
birthDatestring · opcional
nullable
scoreinteger · opcional
por defecto 0 · 0–100 · nullable
notesstring · opcional
≤ 5000 chars
budgetnumber · opcional
≥ 0 · nullable
currencystring · opcional
COP · USD · EUR · MXN · BRL · ARS · BOB · CAD · CLP · CRC · CUP · DOP · GBP · GTQ · HNL · NIO · PEN · PYG · UYU · VES · por defecto "COP"
lookingForstring · opcional
≤ 500 chars
preferredTypestring · opcional
APARTMENT · HOUSE · OFFICE · COMMERCIAL · LAND · WAREHOUSE · ROOM · FARM · OTHER · nullable
preferredCitystring · opcional
≤ 100 chars
preferredNeighborhoodstring · opcional
≤ 100 chars
minBedroomsinteger · opcional
≥ 0 · nullable
minBathroomsinteger · opcional
≥ 0 · nullable
minAreanumber · opcional
≥ 0 · nullable
preferredTransactionTypestring · opcional
SALE · RENT · BOTH · nullable
ownerIdstring · opcional
jobTitlestring · opcional
≤ 120 chars
companyIdstring · opcional
tagIdsstring[] · opcional
tagsstring[] · opcional
Etiquetas por nombre. Se crean las que no existan y se AGREGAN a las que ya tenga el contacto.

Respuesta 201

ContactRecord · 31 campos
dataContacto al crearlo o actualizarlo. Las etiquetas asignadas con `tags` no se reflejan aquí.
idstring
codestringCódigo legible del contacto
firstNamestring
lastNamestring
emailstring
phonestring`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)
phone2string
sourcestringWHATSAPP, METROCUADRADO, FINCARAIZ, WEBSITE, REFERRAL, WALK_IN
statusstringNEW, CONTACTED, QUALIFIED, NEGOTIATING, WON, LOST
typestringCLIENT, OWNER, BOTH
documentTypestringCC, CE, NIT, PASSPORT, DNI, RUC
documentNumberstring
scoreintegerPuntaje 0-100
notesstring
budgetstringNúmero decimal serializado como texto.
currencystring
lookingForstring
preferredTypestringAPARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSE
preferredCitystring
preferredNeighborhoodstring
minBedroomsinteger
minBathroomsinteger
minAreanumber
preferredTransactionTypestring
subscribedToAlertsboolean
whatsappOptInboolean
marketingOptInboolean
ownerIdstringAgente dueño del contacto
createdAtstring
updatedAtstring
ownerid · firstName · lastName
idstring
firstNamestring
lastNamestring

Errores posibles

con la forma { "error": { "code", "message" } }
  • 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
  • 401UNAUTHORIZED
  • 402PAYMENT_REQUIRED
  • 403FORBIDDEN
  • 404NOT_FOUND
  • 409DUPLICATE
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
PeticiónPOST/v1/contacts
SDK oficial · @bydomu/sdk · aún no está en npm
import { ByDomu } from "@bydomu/sdk";

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

const { data } = await bydomu.contacts.create({
  "firstName": "María",
  "lastName": "González",
  "phone": "+573001234567",
  "email": "[email protected]",
  "source": "WEBSITE",
  "type": "CLIENT",
  "budget": 350000000,
  "preferredType": "APARTMENT",
  "preferredCity": "Bogotá",
  "tags": [
    "VIP",
    "Inversionista"
  ]
});
201 Created · ejemplo
{
  "data": {
    "id": "clx1con001",
    "code": "C-0107",
    "firstName": "María",
    "lastName": "González",
    "email": "[email protected]",
    "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"
    }
  }
}