Create an experiment for the Experiment Center.
Create a new experiment for A/B testing.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Create an experiment with traffic allocation
A human-readable name for the experiment
3 - 255^(?!.*\x00)\S(.*\S)?$The ID of the feature flag this experiment is based on
^flg_[A-Za-z0-9_]+$Specifies the target authentication flow for this experiment. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, or all. Note that the all value targets every flow at once, but requires that this is the only active experiment.
authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, all The traffic allocation strategy for this experiment
percentage, segment A description of the experiment
3 - 1024^(?!.*\x00)\S(.*\S)?$Applies only to Auth0-managed flags. Controls where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config so the experiment overlays only its changes, 'flag' uses the flag's frozen defaults for a complete config. Optional; defaults to 'tenant' when omitted. Rejected for customer-defined flags.
tenant, flag Traffic allocations mapping variations to weights or segments
1Ramp experiment levels configuration. A strictly-increasing sequence of exposure percentages, each an integer in [0, 100].
10 <= x <= 100Response
Experiment successfully created.
^exp_[A-HJ-NP-Za-km-z1-9]+$percentage, segment Filter by status. Exact match.
draft, active, paused, completed, archived Whether the experiment is valid and ready to activate, as of its last update. It can lag changes made later to related entities. Call POST /experiments/{id}/validate for the current result.
Fields that may be mutated given the experiment's current status. Computed at response time; always current with the API's enforcement logic.
For Auth0-managed flags, where non-overridden config keys resolve from: 'tenant' inherits the tenant's live config, 'flag' uses the flag's frozen defaults. Omitted when unset (defaults to 'tenant' at resolution). Not applicable to customer-defined flags.
tenant, flag Ramp experiment levels configuration.
Read-only. The active exposure percentage for the current ramp step. Null when no ramp schedule is active.