Search portfolios, properties, units and leases
Runs one free-text search across the company's portfolios, properties, units and leases, and returns the matches nested in that order. Built for a picker that drills down from portfolio to lease.
Authorization
AuthorizationstringrequiredBody
application/json
searchstringrequiredWhat to search for, 1 to 150 characters.
levelSearchenum<string>How deep to search and therefore how deep the result nests. portfolio stops at portfolios, lease goes all the way down.
includeTenantsbooleanWhether to also return the tenants on each matched lease.
includeEndedLeasesbooleanWhether to include leases that have been closed out.
includeDeactivatedbooleanWhether to include deactivated portfolios, properties and units.
includeFutureLeasebooleanWhether to include leases that have not started yet.
excludeUnlistedUnitbooleanWhether to leave out units that are not listed for rent.
Response
200 · The matches, nested portfolio to property to unit to lease.
portfoliosobject[]Matched portfolios, each carrying whatever matched beneath it.
401 · The access token is missing, expired, or not valid for this company.
This endpoint reads only. It takes a POST so the seven options can be sent as JSON rather than crammed into a query string.
The nesting always follows portfolio, property, unit, lease. levelSearch decides where it stops: a levelSearch of property returns portfolios with properties inside them and no units array at all.