Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
experimentation
/
experiments
List experiments for the tenant.
curl --request GET \
  --url https://{tenantDomain}/api/v2/experimentation/experiments \
  --header 'Authorization: Bearer <token>'
{
  "experiments": [
    {
      "id": "<string>",
      "name": "<string>",
      "feature_flag_id": "<string>",
      "authentication_flow": "<string>",
      "assignment_config": {
        "subject": "device"
      },
      "is_valid": true,
      "allocations": [
        {
          "variation_id": "<string>",
          "segment_id": "<string>",
          "weight": 123,
          "priority": 123,
          "is_control": true,
          "is_fallback": true
        }
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "started_at": "2023-11-07T05:31:56Z",
      "ended_at": "2023-11-07T05:31:56Z"
    }
  ],
  "next": "<string>"
}

Autorisations

Authorization
string
header
requis

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

Paramètres de requête

from
string

Optional Id from which to start selection.

take
integer

Number of experiments to return per page. Defaults to 25, maximum 50.

Plage requise: 1 <= x <= 50
status
enum<string>

Filter by status. Exact match.

Options disponibles:
draft,
active,
paused,
completed,
archived
authentication_flow
string

Filter by authentication flow. Exact match.

feature_flag_id
string

Filter by feature flag ID. Exact match.

Réponse

Experiments successfully retrieved.

experiments
object[]
requis
next
string

Checkpoint token for the next page. Omitted when there are no further results.