Skip to content

Integration, by email

Get Dubizzle enquiries into your real estate CRM without retyping them

Treasury has no Dubizzle API connection. What works today is email: forward each Dubizzle enquiry notification to your brand's portal endpoint, and Treasury reads the name, number, email and message into a lead in that brand's pipeline, filed under the source dubizzle. Setup is a mailbox rule and a small script.

The claim

Dubizzle enquiries reach Treasury today as forwarded notification emails, read into a lead by src/lib/portal-enquiry.ts. There is no Dubizzle API sync, and the reader is tested on synthetic sample emails, not on a live Dubizzle account.

What works today

What happens to a forwarded Dubizzle email

Read into a lead
The route POST /api/leads/portal takes the email's sender, subject and body. Treasury reads the name, phone, email and message, plus the listing title and reference when the email carries them, and files one lead with the source dubizzle.
One brand only
The request carries the brand's webhook secret as a Bearer token, and the lead is written into that brand and no other.
Not filed twice
The key is the person plus the listing reference, or a hash of the message when there is no reference. The same email forwarded twice updates one lead. The same person asking about another listing is a new enquiry.
Owner alerted
The lead goes through the same door as /api/leads, so the owner alert and the follow-up clock run as for any other new lead. A repeat enquiry from a known person is recorded on the existing lead, not announced as new.
Nothing invented
If an email shows no phone and no address, for example a weekly report, Treasury answers 422 and files nothing. A missing name is left to the email address, never guessed.

Steps

How to set it up

1. In the app, copy the brand's webhook secret and keep it in your automation tool's secret store, never in a shared mailbox rule. 2. Create a rule that catches mail from dubizzle.com. In Gmail that is a filter that applies a label, with a small Google Apps Script that posts labelled mail. In Microsoft 365 it is a rule plus a Power Automate HTTP action. Zapier or Make work the same way.

3. Post to https://treasurycrm.com/api/leads/portal with the header Authorization: Bearer plus the secret, and a JSON body of from, subject and text (or html when there is no plain part). 4. Send yourself a test with a placeholder number such as +971 50 000 0000 and confirm a lead appears under the source dubizzle. The full scripts are in docs/PORTAL-EMAIL-FORWARDING.md.

What does not work

What this does not do

There is no connection to a Dubizzle API, so there is no structured enquiry, no portal lead id, no call or project enquiry that never arrives as an email, and no listing sync. If a native connection is what you are buying, say so on the first call and we will tell you where we stand.

Portal email templates are not published and change without notice. The reader is checked against synthetic sample emails written to match the shapes we have seen. It has not been confirmed against a live Dubizzle account, so forward a real enquiry as the test before you rely on it, and send us any email it misreads.

Asked and answered

Questions

Does Treasury connect to the Dubizzle API?
No. There is no Dubizzle API connection in Treasury today. Enquiries arrive as forwarded notification emails that Treasury reads into leads.
Which fields does Treasury read from a Dubizzle email?
The name, phone, email and message, and the listing title and reference when the email shows them. Anything it cannot read is left empty, and the reply to each forward says how confident the reading was.
What happens if Dubizzle changes its email template?
The reader may miss fields until it is updated. A message with no phone and no address is refused with 422 and filed nowhere, so a failure shows up as missing leads, which is why you should test with a real enquiry first.
Will the same Dubizzle enquiry create two leads?
No, when the listing reference or the message is the same. A repeat enquiry from a known phone is added to that person's timeline instead of filed again.

Request access

Tell us how many brands you run and who needs to see them. We will walk you through the system with your names in it, not ours.

We reply within one working day. Already a customer? Sign in at app.treasurycrm.com.