Opensearch Aggregate
Generic, allowlist-bounded GROUP BY over a whitelisted mashup index.
Translates group_by into nested OpenSearch terms aggregations with metric sub-aggs, then applies having / sort / limit to the flattened groups. This is the matrix-walk primitive for TAM design (e.g. count companies by NAICS x state x employee band in one call).
Guardrails: group_by depth is capped at 3, per-level bucket size tapers by depth (_AGG_TERMS_SIZE_BY_DEPTH), the agg list is capped at 10, and returned groups at limit (<=1000). Counts from terms / cardinality are APPROXIMATE on a sharded index. Since mashup_companies/mashup_contacts share one contact-grained index, use uniqExact on COMPANY_ID for true unique-company counts. Mashup aggregations automatically apply the organization's deliverability policy.
Request
- Base URL: https://be.graph8.com/api/v1
- URL: https://be.graph8.com/api/v1/opensearch/aggregate
- Auth: HTTP bearer
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 2 revisions of this API.