Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
experimentation
/
segments
Lister les segments du locataire.
curl --request GET \
  --url https://{tenantDomain}/api/v2/experimentation/segments \
  --header 'Authorization: Bearer <token>'
{
  "segments": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "id": "<string>",
      "name": "<string>",
      "rules": [
        {
          "match": {
            "browser": [
              "<string>"
            ],
            "client_id": [
              "<string>"
            ],
            "connection": [
              "<string>"
            ],
            "connection_type": [
              "<string>"
            ],
            "country": [
              "<string>"
            ],
            "device_type": [
              "<string>"
            ],
            "domain": [
              "<string>"
            ],
            "organization_id": [
              "<string>"
            ],
            "platform": [
              "<string>"
            ],
            "region": [
              "<string>"
            ],
            "user_agent": [
              "<string>"
            ]
          },
          "not_match": {
            "browser": [
              "<string>"
            ],
            "client_id": [
              "<string>"
            ],
            "connection": [
              "<string>"
            ],
            "connection_type": [
              "<string>"
            ],
            "country": [
              "<string>"
            ],
            "device_type": [
              "<string>"
            ],
            "domain": [
              "<string>"
            ],
            "organization_id": [
              "<string>"
            ],
            "platform": [
              "<string>"
            ],
            "region": [
              "<string>"
            ],
            "user_agent": [
              "<string>"
            ]
          }
        }
      ],
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>"
    }
  ],
  "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 de segments à renvoyer par page. La valeur par défaut est 25 et le maximum est 50.

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

Filtrer par type. Correspondance exacte.

Options disponibles:
auth0,
self

Réponse

Segments récupérés avec succès.

segments
object[]
requis
next
string

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