API

Show your listings on your own website

Listings you manage on NuBien Homes can appear on your agency’s website, in your own design. Reading is public; sending enquiries needs your agency’s API key (create one under Agency → API keys in the dashboard). Call it from your server, never from the browser.

Your listings

GET https://homes.nubien.group/api/v1/agencies/<agency>/listings?purpose=rent&type=house&page=1&pageSize=24

Filters: purpose (sale, rent), type, city, beds, maxPrice, q, sort (newest, price-asc, price-desc). Prices are strings in whole kwacha or dollars.

One listing

GET https://homes.nubien.group/api/v1/listings/<slug>

Your agency profile

GET https://homes.nubien.group/api/v1/agencies/<agency>

Send an enquiry

POST https://homes.nubien.group/api/v1/enquiries
Authorization: Bearer nbh_…
Content-Type: application/json

{ "listing": "rima-suites", "name": "Chikondi Banda",
  "phone": "+265 999 000 000", "email": "",
  "message": "Is the 3-bedroom still available?",
  "source": "yourdomain.mw" }

Answers 201 { id }. Enquiries land in your dashboard inbox and are emailed to your team.