GET
/
public
/
v1
/
segment-service
/
segments
[BETA] Retrieve a list of segments.
curl --request GET \
  --url https://api.topsort.com/public/v1/segment-service/segments \
  --header 'Authorization: Bearer <token>'
{
  "segments": [
    {
      "config": {
        "definition": {
          "behaviors": [
            {
              "action_type": "impressions",
              "frequency": {
                "operator": "gt",
                "value": 1
              },
              "logic": "and",
              "parameters": [
                {
                  "entity_list": [
                    "<string>"
                  ],
                  "entity_type": "vendor"
                }
              ],
              "time_window": {
                "value": 45
              }
            }
          ]
        },
        "type": "dynamic"
      },
      "description": "<string>",
      "id": "<string>",
      "name": "<string>",
      "total": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

A valid API key generated in Topsort's UI.

Response

Successful Response

segments
PublicSegmentResponse · object[]
required

List of segments.