Llave

Llave Partner API · v1

Sync your real estate catalog with Llave.do

Idempotent REST API keyed by your external reference, official Dominican Republic (ONE) locations catalog, automatic photo optimization, scheduled feeds and real-time webhooks.

Authentication

Header Authorization: Bearer llv_live_... with granular scopes.

Rate limits

120 requests/minute per agency, plus batch upserts of up to 100 listings per call.

Photos & moderation

We download and serve optimized WebP/JPEG variants from R2. Verified agencies publish live instantly.

Quick start: publish your first listing

curl -X PUT "https://llave.do/api/v1/partner/listings/REF-2045" \
  -H "Authorization: Bearer llv_live_TU_CLAVE" \
  -H "Content-Type: application/json" \
  -d '{
    "operation": "sale",
    "property_type": "villa",
    "title": "Villa de 3 habitaciones con piscina en Sosúa Ocean Village",
    "description": "Villa moderna lista para mudarse a minutos de la playa.",
    "price": 345000,
    "currency": "USD",
    "province": "Puerto Plata",
    "city": "Sosúa",
    "sector": "Sosúa Ocean Village",
    "bedrooms": 3,
    "bathrooms": 3,
    "parking": 2,
    "area_built_m2": 210,
    "area_lot_m2": 520,
    "amenities": ["piscina", "seguridad_24h", "terraza", "amueblado"],
    "photos": [
      "https://tuweb.com/fotos/ref2045-1.jpg",
      "https://tuweb.com/fotos/ref2045-2.jpg",
      "https://tuweb.com/fotos/ref2045-3.jpg"
    ],
    "agent_name": "Luis García",
    "agent_phone": "+18294832697",
    "agent_whatsapp": "+18294832697",
    "agent_email": "[email protected]"
  }'

Endpoints reference

OpenAPI 3.1 JSON ↗
MethodPathScopeDescription
GET/api/v1/partner/me(any)Company status, verification, scopes and rate limits.
GET/api/v1/partner/locations/suggest?q=locations:readSearch official ONE sectors, municipalities and provinces.
GET/api/v1/partner/locations/treelocations:readDownload full ONE locations catalog (filterable by ?level=).
GET/api/v1/partner/listingslistings:readList your synced listings with filters and pagination.
PUT/api/v1/partner/listings/{external_id}listings:writeIdempotently create or update a property by your external reference.
PATCH/api/v1/partner/listings/{external_id}listings:writePartial update (e.g. price, status or photos only).
DELETE/api/v1/partner/listings/{external_id}listings:writeClose/withdraw a property (?reason=sold|rented|withdrawn).
POST/api/v1/partner/listings/batchlistings:writeBatch upsert up to 100 listings in a single request.
POST/api/v1/partner/listings/synclistings:writeSubmit active_external_ids to withdraw missing listings (with >50% guard).
POST/api/v1/partner/listings/{external_id}/photoslistings:writeUpload a binary photo (multipart) if you don't host public URLs.
GET/api/v1/partner/leadsleads:readRetrieve buyer contacts and click events (WhatsApp, phone, email).
GET/api/v1/partner/stats?days=30leads:readDaily views, visits and top-performing listings.

Verifying webhook signatures (HMAC-SHA256)

Every webhook request includes X-Llave-Signature: t=<unix>,v1=<hex>. Compute HMAC-SHA256 of "<t>.<rawBody>" with your secret.

const sig = crypto
  .createHmac("sha256", webhookSecret)
  .update(`${timestamp}.${rawBody}`)
  .digest("hex");

Remote Feed URL format (JSON / XML)

Prefer pull over push? Expose a JSON array or { "listings": [...] } (or XML <listings><listing>...) and add its URL in /panel/integraciones.

{
  "listings": [
    {
      "reference": "VI3322",
      "operation": "rent",
      "property_type": "villa",
      "price": 1100,
      "currency": "USD",
      "city": "Sosúa",
      "sector": "Sosúa Ocean Village",
      "photos": ["https://.../1.webp"]
    }
  ]
}