Skip to main content
POST
/
monitor
/
experiments
Create an experiment
curl --request POST \
  --url https://api.getbasalt.ai/monitor/experiments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "featureSlug": "my-feature",
  "name": "My Experiment"
}'
{
  "id": "123",
  "name": "My Experiment",
  "featureSlug": "my-feature",
  "createdAt": "2024-03-20T12:00:00Z"
}

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"

I