Browse docs
Reference

REST API

Manage experiments programmatically. Bearer-authenticated.

Authenticate with your MCP/API token (Settings → MCP access) as a Bearer credential. All endpoints are tenant-scoped to that token.

bash
curl https://maxlift.io/api/experiments \ -H "Authorization: Bearer ml_mcp_your_token"

Endpoints

MethodPathPurpose
GET/api/templatesList experiment templates (public)
GET/api/experimentsList your experiments
POST/api/experimentsCreate an experiment (draft)
GET/api/experiments/:idExperiment detail + counters
PATCH/api/experiments/:idChange status (launch/pause/archive)
GET/api/experiments/:id/verdictStatistical verdict
POST/api/experiments/:id/promote-winnerPromote the winner
GET/api/ruleset?tenant=:idCompiled ruleset for the SDK
POST/api/trackIngest exposure/conversion events

Create an experiment

bash
curl -X POST https://maxlift.io/api/experiments \ -H "Authorization: Bearer ml_mcp_your_token" \ -H "content-type: application/json" \ -d '{ "key": "pricing_test", "name": "Anchor pricing", "traffic_allocation": 100, "primary_metric": "conversion", "variations": [ { "key": "control", "weight": 50 }, { "key": "treatment", "weight": 50 } ] }'