For agents

Lead API.

Pull your agency's enquiries into HubSpot, Salesforce, Zapier, Make or your own CRM with a read-only key. The values shown in the examples below are illustrative.

What it does

The Lead API returns the enquiries buyers have sent about your agency's listings and developments, newest first. It is read-only: a key can never change listings, billing, your profile or the enquiries themselves, and it only ever sees your own company's enquiries.

Create a key

  • Company owners and admins open Company → Lead routing → Lead API & CRM integrations and choose Generate Lead API key.
  • The full key is shown once. We store only a fingerprint, so it cannot be shown again to you, your colleagues or our team. It appears hidden; copy it straight into your password manager or CRM before confirming.
  • You can hold up to five active keys — one per system is good practice — and revoke any of them instantly. If a key is lost, revoke it and generate a new one.

Authentication

Send the key in a request header. Either Authorization: Bearer <key> or X-Domus-Lead-Key: <key> is accepted. Keys in the URL are refused, because URLs are kept in browser history and server logs.

curl "https://domusinventum.com/api/v1/leads?limit=50" \
  -H "Authorization: Bearer dlk_live_your_key"

Parameters

  • type — property (default) for enquiries on listings, or development for enquiries on developments.
  • limit — results per page, 1 to 100. Default 50.
  • offset — how many results to skip. Default 0.
  • created_from / created_to — ISO 8601 timestamps. Returns enquiries received from created_from up to, but not including, created_to.

Property enquiries

GET /api/v1/leads. Use listing.agency_reference — your own reference on the listing — to route each enquiry to the right property in your CRM.

{
  "data": [
    {
      "id": "7c1e…",
      "type": "property",
      "created_at": "2026-12-03T22:04:18+00:00",
      "status": "new",
      "source": { "channel": "website", "client": null },
      "contact": {
        "name": "Jane Doe",
        "email": "jane@example.com",
        "phone": "+34 600 000 000",
        "preferred_contact": "email"
      },
      "message": "I would like to arrange a viewing.",
      "listing": {
        "id": "0a1b2c3d-…",
        "short_id": "0a1b2c3d",
        "agency_reference": "REF-1",
        "title": "Example villa",
        "url": "https://domusinventum.com/real_estate/…",
        "property_type": "villa",
        "listing_type": "sale",
        "price": { "amount": 4250000, "currency": "EUR", "shown_publicly": true },
        "location": { "city": "Marbella", "region": "Málaga", "country": "Spain" }
      }
    }
  ],
  "pagination": { "limit": 50, "offset": 0, "returned": 1, "next_offset": null },
  "meta": { "api_version": "2026-12-01", "type": "property", "generated_at": "…" }
}

status is new until someone in your team opens the enquiry in the inbox, then read. price.shown_publicly is false for price-on-application listings.

Development enquiries

GET /api/v1/leads?type=development. The envelope is the same; each entry carries a development instead of a listing, plus the unit type the buyer asked about when they gave one.

{
  "id": "9f2a…",
  "type": "development",
  "created_at": "2026-12-03T22:04:18+00:00",
  "status": "new",
  "contact": { "name": "…", "email": "…", "phone": null, "preferred_contact": "email" },
  "message": "Please send the brochure.",
  "preferred_unit_type": "Penthouse",
  "development": {
    "id": "5d3c…",
    "name": "Example Residences",
    "url": "https://domusinventum.com/developments/example-residences",
    "location": { "city": "Marbella", "region": "Málaga", "country": "Spain" }
  }
}

Paging and polling

  • When pagination.next_offset is a number, request it as the next offset. When it is null you have everything.
  • For a scheduled sync, remember the newest created_at you have seen and pass it as created_from next time, then skip any id you already hold.
  • Checking every few minutes is plenty; enquiries also still arrive by email and in the inbox.

Request limit

Each key may make 20 requests per minute. Beyond that the API answers 429 rate_limited with a Retry-After header giving the number of seconds to wait. Keys are counted separately, so one busy integration never slows another.

Errors

{ "error": { "code": "invalid_api_key", "message": "The lead API key is invalid or revoked." } }
  • 400 invalid_request — a parameter is out of range or malformed.
  • 401 missing_api_key — no key was sent in a header.
  • 401 invalid_api_key — the key is wrong or has been revoked.
  • 429 rate_limited — the key has passed its per-minute limit; wait for the Retry-After seconds.
  • 503 unavailable — temporary problem on our side; retry shortly.

Privacy

Responses contain only what the buyer submitted with the enquiry and the listing or development it concerns. Buyer profile information is not included. Treat the data as you would the enquiry email: use it only to respond about that property — see Leads & inbox.

Still stuck? Contact support.