Documentation Index
Fetch the complete documentation index at: https://docs.kaireonai.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/v1/contact-policies/impact-preview
Previews the customer impact of a proposed contact policy configuration. Samples customers from recent interaction history and simulates how many would be affected by the proposed frequency cap.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
policyType | string | Yes | Policy type identifier |
scope | string | No | Scope: global, offer, category, or channel (default: global) |
scopeId | string | No | ID of the scoped entity (required when scope is offer, category, or channel) |
config.maxFrequency | integer | Yes | Maximum allowed contacts per period (minimum: 1) |
config.periodDays | integer | Yes | Lookback period in days (1-365) |
config.outcomeType | string | Yes | Interaction type to count (e.g., impression, click, convert) |
sampleSize | integer | No | Max customers to analyze (100-10000, default: 1000) |
Example
Response
Response Fields
| Field | Type | Description |
|---|---|---|
totalCustomersAnalyzed | integer | Number of customers in the sample |
customersAffected | integer | Customers who would hit the frequency cap |
affectedPercent | number | Percentage of analyzed customers affected |
offersSuppressed | object | Map of offer names to suppression counts |
avgOffersBeforePolicy | number | Average contacts per customer before the policy |
avgOffersAfterPolicy | number | Average contacts per customer after the policy |
topAffectedSegments | array | Segments most impacted (sorted by affected count) |