Create a new A/B test (experiment)
Use when: caller wants to start an A/B test on a gate (split or shadow) to compare a candidate configuration against the current production config
Create a new experiment. Supports two test types: parameter (vary config on a single gate via variantAConfig / variantBConfig — requires gateId) and gate_comparison (route between two gates via gateAId + gateBId). Two modes: split (live traffic split) and shadow (run candidate against logged traffic without affecting customer responses). Goal definition is either legacy single-metric (goalMetric + goalTarget) or the v2 array form (goalMetrics[]). Statistical methods: sequential (default, anytime-valid stopping) or fixed-horizon. Optional evaluationRubric defines judge-based quality scoring; validated via JudgeMan’s rubric schema. Created in draft state — start it via PATCH /:id with status: 'running'.
Documentation Index
Fetch the complete documentation index at: https://docs.verlon.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Layer API key (prefixed sk-). Generated from the dashboard under Settings → API Keys, or via layer key create in the CLI.
Body
111model, prompt, parameters, tools, provider, output_format, other user, session, request Response
Experiment created (in draft state).