Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
experimentation
/
experiments
Lister les expériences du locataire.
curl --request GET \
  --url https://{tenantDomain}/api/v2/experimentation/experiments \
  --header 'Authorization: Bearer <token>'
{
  "experiments": [
    {
      "allocations": [
        {
          "is_control": true,
          "is_fallback": true,
          "priority": 123,
          "segment_id": "<string>",
          "variation_id": "<string>",
          "weight": 123
        }
      ],
      "assignment_config": {
        "subject": "device"
      },
      "authentication_flow": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "feature_flag_id": "<string>",
      "id": "<string>",
      "is_valid": true,
      "name": "<string>",
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "ended_at": "2023-11-07T05:31:56Z",
      "started_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

ID facultatif à partir duquel commencer la sélection.

take
integer

Nombre d’expériences à renvoyer par page. Valeur par défaut : 25; maximum : 50.

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

Filtrer par statut. Correspondance exacte.

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

Filtrer par flux d’authentification. Correspondance exacte.

feature_flag_id
string

Filtrer par ID de l’indicateur de fonctionnalité. Correspondance exacte.

Réponse

Expériences récupérées avec succès.

experiments
object[]
requis
next
string

Jeton de checkpoint pour la page suivante. Omis s’il n’y a pas d’autres résultats.