Engage

Query Profiles

post/engage

Request

Query parameters

project_idinteger required

Required if using service account to authenticate request.

workspace_idinteger

The id of the workspace if applicable.

Request body application/x-www-form-urlencoded

distinct_idstring

A unique identifier used to distinguish an individual profile.

distinct_idsstring

A JSON array of distinct_ids to retrieve profiles for. Example: distinct_ids=["id1", "id2"]

data_group_idstring

The ID of the group key, used when querying group profiles, click here for more info.

wherestring

An expression to filter users (or groups) by. See the expressions section above.

output_propertiesstring[]

A JSON array of names of properties you want returned. Example: output_properties=["$last_name", "$email", "Total Spent"]

This parameter can drastically reduce the amount of data returned by the API when you're not interested in all properties and can speed up queries significantly.

session_idstring

A string id provided in the results of a previous query. Using a session_id speeds up api response, and allows paging through results.

pageinteger

Which page of the results to retrieve. Pages start at zero. If the "page" parameter is provided and above 0, the session_id parameter must also be provided.

behaviorsinteger

If you are exporting user profiles using an event selector, you use a behaviors parameter in your request. behaviors and filter_by_cohort are mutually exclusive.

as_of_timestampinteger

This parameter is only useful when also using behaviors. If you try to export more than 1k profiles using a behaviors parameter and you don't included the parameter as_of_timestamp, you'll see the following error:

request for page in uncached query for params

filter_by_cohortstring

Takes a JSON object with a single key called id whose value is the cohort ID. behaviors and filter_by_cohort are mutually exclusive.

Example: filter_by_cohort='{"id":12345}'

include_all_usersboolean

*only applicable with filter_by_cohort parameter

include_all_users=true (default) include all distinct_ids even if they don’t have a user (or group) profile.

include_all_users=false include only distinct_ids with user (or group) profile.

Response

Success.

pageinteger

The page number of the results

page_sizeinteger

The max number of results in a single page.

session_idstring
statusstring

Indicates whether the request was successful

totalinteger

The number of users in the results payload.

Changes

No recorded changes to this operation across all 1 revision of this API.