Experiments API

Introduced in GitLab 13.5.

This API is for listing A/B experiments defined in GitLab.

The user must be a GitLab team member to access the API.

List all experiments

Get a list of all experiments. Each experiment has an enabled status that indicates whether the experiment is enabled globally, or only in specific contexts.

GET /experiments
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/experiments"

Example response:

[
    {
      "key": "experiment_1",
      "enabled": true
    },
    {
      "key": "experiment_2",
      "enabled": false
    }
]