ab-tests

Preview A/B test plan

Calculate the sample targets and analysis boundaries for a confidence-mode test without creating it.

Required permission: ab_tests.create.

post/v1/projects/{project_id}/ab-tests/plan-preview

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

Query parameters

environment_id, string uuid required

Environment the test would run in.

Request body

ABTestPlanPreviewRequest required

Inputs for previewing a confidence-mode plan.

traffic_percentage, integer required

Percentage of traffic routed to the variant, 1 to 99.

analysis_plan, ABTestAnalysisPlanInput required

Planning assumptions.

Response

Successful Response

ABTestPlanPreviewResponse required

Sample sizes and decision boundaries calculated for a confidence-mode plan.

planned_control_samples, integer required

Maximum control sample, including the sequential design's inflation and a minimum of 80 per arm.

planned_variant_samples, integer required

Maximum variant sample, including the sequential design's inflation and a minimum of 80 per arm.

total_samples, integer required

Sum of the planned control and variant samples.

fixed_horizon_control_samples, integer required

Control sample a single analysis at the end would need.

fixed_horizon_variant_samples, integer required

Variant sample a single analysis at the end would need.

max_information_inflation, number required

Factor by which the sequential design increases the fixed-horizon sample.

look_fractions, number[] required

Shares of the planned sample at which analysis looks happen.

boundaries, ABTestSequentialBoundaryResponse[] required

Decision boundary for each planned look.

Changes

No recorded changes to this operation across all 17 revisions of this API.