Skip to main content
POST
Create an experiment

Authorizations

Authorization
string
header
required

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

Body

application/json
featureSlug
string
required

The slug of the feature to create an experiment on

Example:

"my-feature"

name
string
required

The name of the experiment

Example:

"My Experiment"

Response

The created experiment

id
string
required

The ID of the experiment

Example:

"123"

name
string
required

The name of the experiment

Example:

"My Experiment"

createdAt
string
required

The creation timestamp of the experiment

Example:

"2024-03-20T12:00:00Z"

featureSlug
string | null

The slug of the feature this experiment belongs to

Example:

"my-feature"