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_]+$The authentication flow this experiment applies to. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, organization_selection, email_verification.
authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, organization_selection, email_verification A description of the experiment
3 - 1024^(?!.*\x00)\S(.*\S)?$Server-controlled classifier (EA, read-only). For customer-defined flags it is always false and cannot be set to true; for Auth0-managed flags it is derived. Optional: omit it, or send a value matching the server rule.
The traffic allocation strategy for this experiment
percentage, segment Configuration for how users are assigned to variations
Traffic allocations mapping variations to weights or segments
1Ramp experiment levels configuration.
Response
Experiment successfully created.
^exp_[A-HJ-NP-Za-km-z1-9]+$percentage, segment Filter by status. Exact match.
draft, active, paused, completed, archived Fields that may be mutated given the experiment's current status. Computed at response time; always current with the API's enforcement logic.
Ramp experiment levels configuration.
Read-only. The active exposure percentage for the current ramp step. Null when no ramp schedule is active.