Unify and manage your data

Get profiles for a segment

Learn more about the Segments Api to retrieve profiles part of a segment.

Use the Segments to retrieve the profiles that belong to a segment.

HTTP method and endpoint

Use the following HTTP method and endpoint path to retrieve the profiles in a segment.

GET {platformUrl}/segments/{id}/entities

Replace {platformUrl} with your Reltio platform base URL.

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
idStringYesUnique identifier of the segment.

Example: 3prE0YZ

Query parameters

The following table describes the query parameters and their values.

ParameterTypeRequiredDescriptionAccepted values / Default
sortStringNoThe field used to sort the results.Not stated in source.
orderStringNoIndicates whether the profiles are sorted in ascending or descending order.Not stated in source.
filterStringNoSearch API filter conditions against the segment fields. Use Reltio QL syntax.Not stated in source.
offsetIntegerNoThe pagination offset.Not stated in source.
maxIntegerNoThe maximum number of results to return.Not stated in source.
returnPartialResultsBooleanNo When set to true and the segment's status is submitted or in_progress, the response returns the data that currently exists for the segment instead of returning the SEGMENT_NOT_EVALUATED error. When set to false or omitted, the response returns profiles only after the segment has finished evaluating.true, false; Default: false

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 the profiles in a segment. Replace the sample values with values from your environment.

GET {platformUrl}/segments/3prE0YZ/entities

Response body

The following table describes the fields returned for each profile object in the response array.

FieldTypeDescription
uriStringUnique URI of the profile.
typeStringEntity type of the profile.
createdByStringIdentifier of the user or service that created the profile.
createdTimeLongTimestamp, in epoch milliseconds, when the profile was created.
updatedByStringIdentifier of the user or service that last updated the profile.
updatedTimeLongTimestamp, in epoch milliseconds, when the profile was last updated.
attributesObjectThe profile's attribute values.
isFavoriteBooleanIndicates whether the profile is marked as a favorite.
crosswalksArrayThe source system crosswalk records associated with the profile.
analyticsAttributesObjectComputed analytics attribute values for the profile.
tagsArray of StringTags applied to the profile.
labelStringDisplay label for the profile.
secondaryLabelStringSecondary display label for the profile.

Example response

The following example shows a response containing an array of profile objects.

[
    {
        "uri": "entities/03CHaga",
        "type": "configuration/entityTypes/Organization",
        "createdBy": "solutionconsulting.serviceuser",
        "createdTime": 1729784968264,
        "updatedBy": "TQdhoABqN1DqSgj",
        "updatedTime": 1740974441362,
        "attributes": {},
        "isFavorite": false,
        "crosswalks": [],
        "analyticsAttributes": {},
        "tags": ["Demo Data"],
        "label": "Trammell Crow Company",
        "secondaryLabel": ""
    }
]

The following table lists the possible error responses returned by this API.

HTTP statusError codeDescriptionRecommended action
400 Bad Request32006The segment has not finished evaluating and returnPartialResults was not set to true.Wait for the segment to finish evaluating and retry the request, or resend the request with returnPartialResults set to true to receive the data that currently exists.