Unify and manage your data

Get segment details by ID

Learn more about the Segmentation Api.

This Get Segments API will get segment details by segment ID.

Request

GET /{tenantId}/segments/{id}

Response

{
  "id": "S1",
  "status": "live"
  "label": "Platinum Members",
  "lastEvaluationDate": "2000-10-31T01:30:00.000-05:00",
  "segmentSize": 123000,
  "owner": "noname@mail.com",
  "sharing":"private",
  "rule": "gte(count(gt(interaction.attributes.itemPrice, 100) and gt(interaction.attributes.PurchaseDate, {lastMonth}) and equals(interaction.type, 'Order')), 10) and equals(entity.type, 'customer')" 
  "type": "realtime",
  "schedule": {
      "startTime": "2000-10-31T01:30:00.000-05:00",
      "repeat":"RRULE:FREQ=HOURLY;INTERVAL=12" //every 12 hours
  },
  "description": "<description given by the user>"",
}