Skip to main content
POST
C#

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corps

Create an experiment with traffic allocation

name
string
requis

A human-readable name for the experiment

Required string length: 3 - 255
Pattern: ^(?!.*\x00)\S(.*\S)?$
feature_flag_id
string
requis

The ID of the feature flag this experiment is based on

Pattern: ^flg_[A-HJ-NP-Za-km-z1-9]+$
authentication_flow
enum<string>
requis

The authentication flow this experiment applies to. Must be one of: authentication, mfa_enrollment, mfa_challenge, password_reset, passkey_enrollment, organization_selection, email_verification.

Options disponibles:
authentication,
mfa_enrollment,
mfa_challenge,
password_reset,
passkey_enrollment,
organization_selection,
email_verification
description
string

A description of the experiment

Required string length: 3 - 1024
Pattern: ^(?!.*\x00)\S(.*\S)?$
is_stateful
boolean

Whether the experiment requires stable per-user assignment across its life (EA only)

allocation_strategy
enum<string>

The traffic allocation strategy for this experiment

Options disponibles:
percentage,
segment
assignment_config
object

Configuration for how users are assigned to variations

allocations
object[]

Traffic allocations mapping variations to weights or segments

Minimum array length: 1
levels
integer[]

Ramp experiment levels configuration.

Réponse

Experiment successfully created.

id
string
requis
Pattern: ^exp_[A-HJ-NP-Za-km-z1-9]+$
name
string
requis
feature_flag_id
string
requis
authentication_flow
string
requis
allocation_strategy
enum<string>
requis
Options disponibles:
percentage,
segment
assignment_config
object
requis
status
enum<string>
requis

Filter by status. Exact match.

Options disponibles:
draft,
active,
paused,
completed,
archived
is_valid
boolean
requis
allocations
object[]
requis
editable_fields
string[]
requis

Fields that may be mutated given the experiment's current status. Computed at response time; always current with the API's enforcement logic.

created_at
string<date-time>
requis
updated_at
string<date-time>
requis
description
string
is_stateful
boolean
feature_flag_snapshot
object | null
levels
integer[]

Ramp experiment levels configuration.

started_at
string<date-time>
ended_at
string<date-time>