Passer au contenu principal
GET
https://{tenantDomain}/api/v2
/
experimentation
/
segments
List segments for the tenant.
curl --request GET \
  --url https://{tenantDomain}/api/v2/experimentation/segments \
  --header 'Authorization: Bearer <token>'
{
  "segments": [
    {
      "id": "<string>",
      "name": "<string>",
      "type": "self",
      "rules": [
        {
          "match": {
            "client_id": [
              "<string>"
            ],
            "connection": [
              "<string>"
            ],
            "connection_type": [
              "<string>"
            ],
            "organization_id": [
              "<string>"
            ],
            "domain": [
              "<string>"
            ],
            "device_type": [
              "<string>"
            ],
            "browser": [
              "<string>"
            ],
            "platform": [
              "<string>"
            ],
            "user_agent": [
              "<string>"
            ],
            "country": [
              "<string>"
            ],
            "region": [
              "<string>"
            ]
          },
          "not_match": {
            "client_id": [
              "<string>"
            ],
            "connection": [
              "<string>"
            ],
            "connection_type": [
              "<string>"
            ],
            "organization_id": [
              "<string>"
            ],
            "domain": [
              "<string>"
            ],
            "device_type": [
              "<string>"
            ],
            "browser": [
              "<string>"
            ],
            "platform": [
              "<string>"
            ],
            "user_agent": [
              "<string>"
            ],
            "country": [
              "<string>"
            ],
            "region": [
              "<string>"
            ]
          }
        }
      ],
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>"
    }
  ],
  "next": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://auth-test.auth0-mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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 segments to return per page. Defaults to 25, maximum 50.

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

Filter by type. Exact match.

Options disponibles:
auth0,
self

Réponse

Segments successfully retrieved.

segments
object[]
requis
next
string

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