Unify and manage your data

Get segment details by ID

Learn more about the Segmentation Api.

Use the Segments to retrieve the details of a segment by segment ID.

HTTP method and endpoint

Use the following HTTP method and endpoint path to retrieve segment details.

GET {platformUrl}/{tenantId}/segments/{id}

Replace {platformUrl} with your Reltio platform base URL and {tenantId} with your tenant ID.

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
tenantIdStringYesUnique identifier of the tenant.
idStringYesUnique identifier of the segment.

Request headers

The following request headers must be included.

HeaderValueRequired
AuthorizationBearer <access_token>Yes
Content-Typeapplication/jsonYes

Request body

This operation does not require a request body.

Example request

Use the following example to retrieve segment details. Replace the sample values with values from your environment.

GET {platformUrl}/ce5627DYnQ6abcD/segments/S1

Response body

The following table describes the fields returned in the response body.

FieldTypeDescription
idStringUnique identifier of the segment.
statusStringThe evaluation state of the segment. live: evaluation is complete and the profile set is final. submitted and in_progress: evaluation is currently running. disabled: the segment is not being evaluated.
labelStringDisplay name of the segment.
lastEvaluationDateStringTimestamp, in ISO 8601 format, of the segment's last evaluation.
segmentSizeIntegerNumber of profiles in the segment as of the last evaluation.
ownerStringIdentifier of the segment's owner.
sharingStringSharing setting for the segment.
ruleStringThe segmentation rule that defines the criteria for including a profile in the segment, expressed in Reltio QL syntax.
typeStringThe evaluation type for the segment.
scheduleObjectThe evaluation schedule for the segment, containing startTime and repeat fields.
descriptionStringUser-provided description of the segment.

Example response

The following example shows a response with the details of a segment.

{
  "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"
  },
  "description": "<description given by the user>"
}