GET /api/v1/treatments/uplift
Returns a per-creative uplift micro-card for every creative on a given offer (or every creative across the tenant’s active offers whenofferId is omitted). For each creative, the customers who saw that creative form the treatment cohort; customers who saw the same offer through a different creative form the comparison cohort. Conversion deltas are evaluated with the same two-proportion z-test used by Experiments.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offerId | string | No | Limit to one offer. When omitted, scans up to 200 active offers. |
windowDays | number | No | Lookback window for interactions (1-180, default: 30) |
minSamples | number | No | Impression threshold below which a card is marked samplesBelowMinimum (default: 50) |
Example
Response
treatmentConversionRate, holdoutConversionRate, uplift (absolute), relativeUplift, zScore, pValue, significant, treatmentSamples, holdoutSamples, ciLower/ciUpper (95% CI, null when data is insufficient), and insufficientData. Cards whose treatment impressions fall below minSamples are still returned, flagged with samplesBelowMinimum: true.
Roles
| Endpoint | Allowed roles |
|---|---|
GET /treatments/uplift | Any authenticated caller |