Offices
Office-name typeahead (distinct names with agent totals)
postapi.modelmatch.com/v1/offices/names
Distinct real-estate office names starting with query, each with the agents and offices behind that name across all its offices — the picker for filters that match by office name (listOffices company, listAgents currentOffice). To find one office, use instantSearch or listOffices instead.
Authorization
Body application/json
limitintegerMax names (default 20).
querystringrequiredThe start of an office name (≥ 2 chars), matched as a phrase prefix on the name's words.
Responses
200objectMatching office namesShow attributesHide attributes
dataobject[]requiredShow child attributesHide child attributes
agentCountnumberrequiredAgents across every office with this name
namestringrequiredThe office name as stored (lowercase) — pass it back as company on listOffices, or as currentOffice / office on listAgents.
officeCountnumberrequiredOffices with this name
400objectValidation error401objectUnauthorized403objectForbidden (authenticated, but missing required context — e.g. no active organization)404objectNot found413objectResponse payload too large — detail endpoint capped to fit Lambda response limits503objectSearch timed out or the cluster is overloaded — retry after `Retry-After` seconds.