Five APIs that let you preview the impact of configuration changes before they go live — policy impact, qualification reach, budget burn, experiment power, and segment overlap.
Pre-Deployment Intelligence is a suite of five simulation APIs that answer “what if?” questions about proposed configuration changes. Instead of deploying a new policy, qualification rule, or experiment and hoping for the best, you can preview its impact on your actual customer data first.Each API samples real data from your tenant’s interaction history, customer segments, and schema tables to produce quantitative impact estimates. No changes are written — these are read-only analytical queries.
All Pre-Deployment Intelligence endpoints require admin or editor role (except Budget Forecast and Power Calculator, which also allow viewer). Responses are computed on-demand from live data, so execution time scales with sampleSize.
Endpoint:POST /api/v1/contact-policies/impact-previewPreviews how a proposed contact policy (frequency cap) would affect your customer base. The API samples recent interaction history and calculates how many customers would hit the frequency cap, which offers would be suppressed, and which segments are most affected.
Endpoint:POST /api/v1/qualification-rules/reach-estimateEstimates how many customers qualify or are excluded by a proposed qualification rule. Queries your actual schema tables to produce reach percentages and field distribution statistics.
Statistical summary of the field values (numeric fields only): min, max, avg, median, p25, p75
Use the fieldDistribution statistics to calibrate your threshold. For example, if the median credit score is 712, a rule requiring gte 720 excludes roughly half your customers. Adjusting to gte 680 (below p25 at 645) would include about 75%.
Endpoint:POST /api/v1/offers/budget-forecastProjects when a budget will be exhausted based on historical conversion rates. Uses interaction history to estimate daily conversion volume and calculate an exhaustion date with a confidence level.
Endpoint:POST /api/v1/experiments/power-calculatorCalculates the required sample size and estimated duration for an A/B experiment to reach statistical significance. Uses your tenant’s actual traffic volume to estimate how long the experiment will need to run.
Daily decision volume used for the estimate (from the last 14 days)
recommendation
Human-readable summary
sensitivityTable
Sample size and duration at different effect sizes for comparison
The power calculator uses the standard two-proportion z-test formula: n = (Z_alpha + Z_beta)^2 * (p1(1-p1) + p2(1-p2)) / (p2-p1)^2. Traffic split adjustments account for uneven splits, which require larger total sample sizes.
Endpoint:POST /api/v1/segments/overlapAnalyzes overlap between two or more customer segments by querying their underlying PostgreSQL views and computing pairwise set intersections. Helps identify redundant segments and targeting conflicts.
{ "segments": [ { "id": "seg_high_value", "name": "High Value", "size": 4200 }, { "id": "seg_early_adopter", "name": "Early Adopter", "size": 1850 }, { "id": "seg_premium", "name": "Premium Tier", "size": 920 } ], "overlaps": [ { "segments": ["seg_high_value", "seg_early_adopter"], "count": 712, "percent": 38 }, { "segments": ["seg_high_value", "seg_premium"], "count": 890, "percent": 97 }, { "segments": ["seg_early_adopter", "seg_premium"], "count": 445, "percent": 48 } ], "totalUniqueCustomers": 5163, "overlapWarnings": [ "97% of Premium Tier customers are also in High Value — consider merging or adjusting targeting", "48% of Premium Tier customers are also in Early Adopter — consider merging or adjusting targeting", "38% of Early Adopter customers are also in High Value — consider merging or adjusting targeting" ]}
Field
Description
segments
Each segment with its ID, name, and sampled size
overlaps
Pairwise overlap: segment pair, intersection count, and overlap percentage (relative to the smaller segment)
totalUniqueCustomers
Total unique customers across all segments
overlapWarnings
Warnings for segment pairs with 30%+ overlap, with actionable recommendations
Segment overlap queries execute against the segments’ underlying PostgreSQL views. All segments must have materialized views (created during segment refresh). If a segment view does not exist, the API returns a 400 error with a message to refresh the segment first.