ByDomuDevelopers

Enviar preferencias del buscador

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

Esta referência é gerada a partir do código da API, por isso as descrições estão em espanhol. Nomes, parâmetros e exemplos são iguais em qualquer idioma.

Registra lo que busca un prospecto (tipo, zona, presupuesto, características) como contacto y devuelve hasta 12 propiedades que encajan, con su puntaje y el detalle del cálculo. Dispara el webhook FINDER_SUBMITTED.

Permissão pedida

finder:write

Cabeçalho obrigatório

X-API-Key · chave publicável ou secreta

Nível de acesso

Nível 1 · sem solicitação

Cabeçalhos

1 · todos opcionais
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

Corpo (JSON)

15 · 4 obrigatórios
transactionTypestring · obrigatório
SALE · RENT
propertyTypestring · obrigatório
APARTMENT · HOUSE · OFFICE · COMMERCIAL · LAND · WAREHOUSE · ROOM · FARM · OTHER
firstNamestring · obrigatório
2–100 chars
phonestring · obrigatório
7–20 chars
citystring · opcional
≤ 100 chars
neighborhoodstring · opcional
≤ 100 chars
Ver os outros 9 parâmetros
budgetMinnumber · opcional
≥ 0 · nullable
budgetMaxnumber · opcional
≥ 0 · nullable
minBedroomsinteger · opcional
≥ 0 · nullable
minBathroomsinteger · opcional
≥ 0 · nullable
minAreanumber · opcional
≥ 0 · nullable
amenitiesstring[] · opcional
emailstring | string · opcional
messagestring · opcional
≤ 1000 chars
subscribedToAlertsboolean · opcional
padrão false

Resposta 201

FinderResult · 3 campos
datacontact · properties · total
contactid
idstring
properties[]Hasta 12 propiedades, de mejor a peor puntaje
idstring
codestring
titlestring
typestringAPARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSE
transactionTypestringSALE, RENT, SALE_OR_RENT
pricenumber
currencystring
citystring
neighborhoodstring
bedroomsinteger
bathroomsinteger
areanumber
matchScoreintegerQué tan bien encaja (0-100)
breakdown[]criterio · puntos · estado
criteriostring
puntosinteger
estadostringmatch, partial, mismatch, unknown
imagestring
totalintegerPropiedades que encajan

Erros possíveis

com a 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
  • 409DUPLICATE
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequisiçãoPOST/v1/finder
SDK oficial · @bydomu/sdk · ainda não está no npm
import { ByDomu } from "@bydomu/sdk";

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

const { data } = await bydomu.finder.submit({
  "transactionType": "SALE",
  "propertyType": "APARTMENT",
  "city": "Bogotá",
  "neighborhood": "Chapinero",
  "budgetMin": 250000000,
  "budgetMax": 400000000,
  "minBedrooms": 2,
  "amenities": [
    "parking",
    "gym"
  ],
  "firstName": "Juan",
  "phone": "+573005551234",
  "subscribedToAlerts": true
});
201 Created · exemplo
{
  "data": {
    "contact": {
      "id": "clx1con009"
    },
    "properties": [
      {
        "id": "clx1prop001",
        "code": "P-0042",
        "title": "Apartamento en Chapinero con vista",
        "type": "APARTMENT",
        "transactionType": "SALE",
        "price": 450000000,
        "currency": "COP",
        "city": "Bogotá",
        "neighborhood": "Chapinero",
        "bedrooms": 3,
        "bathrooms": 2,
        "area": 85,
        "matchScore": 87,
        "breakdown": [
          {
            "criterio": "Presupuesto",
            "puntos": 30,
            "estado": "match"
          }
        ],
        "image": "https://cdn.bydomu.com/props/clx1prop001/1.jpg"
      }
    ],
    "total": 7
  }
}