CohortCustomers
Use this when the user asks which customers make up one cohort, or what is behind a single cell of the cohorts matrix.
Authentication
Authorization<token>A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.
companyId*string1 <= lengthapplication/json- body
cohortMonth*stringThe cohort to open, keyed the way the cohorts slice keys it.
^\d{4}-\d{2}$targetMonth*stringThe month to read each cohort member’s MRR in.
^\d{4}-\d{2}$mrrType*stringMRR variant. cmrr = committed MRR (CMRR), mrr = recognised MRR.
"cmrr""mrr"productIds?array<string>|Restrict subscription metrics to these product ids. Omit or null for all products. Values are unioned; a customer on several selected products counts once.
nullcohortCustomers result
application/json- response
The customers of one cohort and what each paid in the target month, sorted by that amount. Churned members are included with 0.
[index: integer]?curl -X POST "https://example.com/companies/string/data/cohortCustomers" \ -H "Content-Type: application/json" \ -d '{ "cohortMonth": "string", "targetMonth": "string", "mrrType": "cmrr" }'[ { "customerId": "string", "customerName": "string", "mrr": 0 }]Cohorts
Use this when the user asks about customer retention or revenue retention by cohort. Returns the cohort matrix only (one entry per cohort month, MRR and…
CustomerMonthlyData
Use this when the user asks for one customer's month-by-month metrics or activity. For per-customer MRR in a month, request dataType "end" (MRR at month…