---
title: "Create Experiment"
method: POST
path: "/api/v1/experiments/create"
tags: ["Experiments"]
---

# Create Experiment

`POST /api/v1/experiments/create`

## Request

- Base URL: `https://api.adrex.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.adrex.ai/api/v1/experiments/create`
- Auth: HTTP bearer

Create a new experiment with its variants.

## Request body

- ExperimentCreate
  - `name` string, required
  - `description` string, nullable
  - `experiment_type` string
  - `campaign_id` string, required
  - `campaign_name` string, nullable
  - `platform` string, required
  - `primary_metric` string
  - `min_duration_days` integer
  - `max_duration_days` integer
  - `min_impressions_per_variant` integer
  - `traffic_split_pct` integer
  - `confidence_threshold` number
  - `auto_apply_winner` boolean
  - `variants` VariantCreate[]
    - `variant_label` string
    - `is_control` boolean
    - `name` string, required
    - `description` string, nullable
    - `variant_config` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/adrex/apis/adrex-ai.md) · [All operations](https://skmtc.dev/adrex/apis/adrex-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/adrex/apis/adrex-ai/revisions/4e6f0f0bc902?raw)
