Skip to Content

Listings API

Endpoints

List Listings (Public)

GET /api/listings

Query Parameters:

ParamTypeDescription
typestringhouse|apartment|townhouse|land|commercial
statusstringfor_sale|for_rent|sold|leased
price_minnumberMinimum price (AUD)
price_maxnumberMaximum price (AUD)
bedroomsnumberMinimum bedrooms
suburbstringSuburb name filter
pagenumberPage number (default: 1)
per_pagenumberResults per page (default: 20, max: 100)

Get Listing (Public)

GET /api/listings/[id]

Returns full listing with media URLs, agent info, and open home schedule.


Create Listing

POST /api/listings Authorization: Bearer <jwt> (agent+) Content-Type: application/json

Required fields: title, type, status, price, address, suburb, state, postcode, bedrooms, bathrooms, parking


Update Listing

PATCH /api/listings/[id] Authorization: Bearer <jwt> (owner or broker)

Request Showing (Public)

POST /api/listings/[id]/request-showing Content-Type: application/json { "name": "Jane Smith", "email": "jane@example.com", "phone": "0400000000", "message": "Interested in viewing this Saturday" }

Creates a lead and a showing request simultaneously.

Last updated on