Opensearch Count
POST /opensearch/count
Exact match count for one of the whitelisted mashup indices.
Same index + filters shape as /opensearch/search but returns
only the count via the native OpenSearch _count API, so it is NOT
capped at the 10000 track_total_hits ceiling that /search’s
total saturates at. This is the right call for TAM cell-sizing.
Note: mashup_companies and mashup_contacts are the same physical,
contact-grained index — a count over mashup_companies counts contact
rows, not unique companies. For a unique-company total use
/opensearch/aggregate with uniqExact on COMPANY_ID. Mashup
counts automatically apply the organization’s deliverability policy.
Authorizations
Parameters
Header Parameters
Request Body required
Exact-count request. Same index + filters shape as search; the
page-oriented fields (fields/sort/limit/cursor) are intentionally absent
because a count returns no rows.
object
Field equality filters, identical semantics to /opensearch/search. Scalar -> term, list -> terms (OR). RAW UPPERCASE field names (e.g. COMPANY_INDUSTRY, COMPANY_NAICS, COMPANY_COUNTRY).
object
Logical index to count. Maps to a whitelisted physical alias.
Responses
200
Successful Response
object
object
422
Validation Error