Cohort analysis
const url = 'https://api.ultimateteam.ai/api/v1/ml/cohorts?cohort_type=signup_week&period=month';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.ultimateteam.ai/api/v1/ml/cohorts?cohort_type=signup_week&period=month' \ --header 'X-API-Key: <X-API-Key>'Return cohort analysis results for a segmentation dimension.
Cohorts span the entire customer base (no tenant filter), so this is admin/owner only – the same operator-analytics gate as the per-tenant and bulk score endpoints.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Responses
Section titled “ Responses ”Successful Response
Complete cohort analysis output.
Attributes: cohort_type: Type of cohort (signup_week, plan_tier, industry). cohort_label: Specific cohort identifier. retention_curve: Retention data points over time. revenue_per_period: Revenue generated per period. feature_adoption: Feature name to adoption rate mapping.
object
object
A single row in a cohort retention curve.
Attributes: cohort_label: Identifier for this cohort (e.g. “2026-W01”). periods_since_start: Number of periods since cohort start, >= 0. cohort_size: Total members in the cohort at start. active_count: Members still active at this period. retention_rate: Fraction of cohort still active, 0.0 to 1.0.
object
Examplegenerated
[ { "cohort_label": "example", "cohort_type": "example", "feature_adoption": { "additionalProperty": 1 }, "retention_curve": [ { "active_count": 1, "cohort_label": "example", "cohort_size": 1, "periods_since_start": 1, "retention_rate": 1 } ], "revenue_per_period": [ 1 ] }]Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}