Run a cohort analysis
Cohort an audience by acquisition period and analyze retention or LTV over time. Limited to cohort-specific measures and to weekly / monthly / yearly granularity.
Required scope: analytics:read.
Authorizations
Your Upstack API key. Starts with upstack_.
The pixel id the request targets.
Body
Must match the x-pixel-id header.
week, month, year Cohort-specific measure ids. Pass measure ids as strings (this
endpoint differs from /api/query, which takes objects with
pacing).
1 - 30 elementsorders.ltv_cohort_gross_revenue, orders.ltv_cohort_net_revenue, orders.customers_cohort, orders.avg_order_value_cohort, orders.cohort_retention_percent, orders.cohort_cm1, orders.cohort_cm2 Canonical filter applied to the cohort. orders.* fields
are valid in this context — discover via
GET /api/filters.
- Option 1
- Option 2
- Option 3
Order-level query settings — exclusion filters, pending/voided handling.
Response
Cohort results.