Query Profiles
page_size records for each request. To request additional records, callers should repeat their call to the API using the same where param, but provide a session_id parameter with a value taken from the first response, and include a page parameter with a value one greater than the value of page in the response.
A caller trying to retrieve all of the records for a particular query might use an algorithm something like this:
Authorizations
Service Account
Query Parameters
Required if using service account to authenticate request.
The id of the workspace if applicable.
Body
A unique identifier used to distinguish an individual profile.
A JSON array of distinct_ids to retrieve profiles for.
Example: distinct_ids=["id1", "id2"]
An expression to filter users (or groups) by. See the expressions section above.
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.
A string id provided in the results of a previous query. Using a session_id speeds up api response, and allows paging through results.
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.
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.
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
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}'
*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.