Unify and manage your data

Get segments for a profile

Learn more about the Segmentation Api to retrieve segments a profile is part of.

This Get Segments API retrieves a list of segments that the profile currently belongs to.

Request

GET /entities/{id}/segments
Parameter Required Description
Headers Authorization YesInformation about authentication access token in the format "Bearer <accessToken>". For more information, see Authentication API.
QuerysortNoDenotes the field that is used to sort the results.
orderNoIndicates whether the segments are sorted in ascending or descending order.
filterNoThe Search API filter conditions against the segment fields.
offsetNoThe pagination offset.
maxNoThe maximum results to be displayed in the response.

Response

{
  "total": 123, //total number of segments
  "segments": [ //array of full SegmentTO objects
    {
      "id": "S1",
      "segmentLabel": "Platinum Members",
      "lastEvaluationDate": "2000-10-31T01:30:00.000-05:00"
    },
    {
      "id": "S2",
      "segmentLabel": "Small Business owners",
      "lastEvaluationDate": "2000-10-31T01:30:00.000-05:00"
    }
  ]
}