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.
GET /api/v1/experiments
List all experiments with their champion model and challengers. Supports cursor-based pagination.Response
POST /api/v1/experiments
Create a new experiment. Traffic split must sum to 100%.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Unique experiment key |
name | string | Yes | Display name |
description | string | No | Description |
status | string | No | One of: draft, active, paused, archived. Default: "draft" |
championModelId | string | No | Champion model ID |
trafficSplit | object | No | { championPct: number }. Default: { championPct: 80 } |
challengers | array | No | [{ modelId, trafficPct }] |
autoPromote | boolean | No | Auto-promote challenger if it wins. Default: false |
promoteThreshold | number | No | Minimum uplift for auto-promotion. Default: 0.02 |
promoteAfterDays | number | No | Days to wait before auto-promotion. Default: 14 |
Validation
- Traffic split must sum to 100%:
championPct + sum(challengers[].trafficPct)must equal exactly 100. Returns400if not. - Key must be unique per tenant. Duplicate key returns
400.
Example
201 Created
GET /api/v1/experiments/
Get experiment details with champion and challenger models.PUT /api/v1/experiments/
Update an experiment. Challengers are replaced entirely if provided.Request Body
All fields optional. Same as POST fields plusresults (object) for storing outcome data.
DELETE /api/v1/experiments/
Delete an experiment and its challengers. Response:204 No Content
DELETE also works at the collection level:
DELETE /api/v1/experiments?id={experimentId}. Both the path parameter and query parameter forms are supported.GET /api/v1/experiments//results
Returns uplift analysis and statistical significance for treatment vs holdout. The endpoint first checks for live variant assignment data. If no assignments exist, it falls back to stored JSON results.Response
Statistical Methods
- Two-proportion z-test for significance testing (p < 0.05)
- Wilson confidence intervals for per-variant conversion rates
- Required sample size estimation based on baseline rate and minimum detectable effect
Roles
| Endpoint | Allowed Roles |
|---|---|
GET /experiments | any authenticated |
POST /experiments | admin, editor |
PUT /experiments/{id} | admin, editor |
DELETE /experiments/{id} | admin, editor |
GET /experiments/{id}/results | any authenticated |