List users
Retrieve a paginated list of users. You can filter the results using various query parameters.
Query parameters
Filter users by their email address. The search is case-insensitive and must match the exact email value stored in the user’s attributes.
Filter users by segment membership. You can find the segment ID in the Usertour UI by clicking the three-dot menu in the top right corner of the segment page.
Filter users by company membership. Only returns users who are members of the specified company.
Specifies the maximum number of items to return in a single response. The value must be between 1 and 100. If not specified, defaults to 20 items per page.
Specifies the starting point for the next page of results. The response will include items that come after (but not including) the object with this ID. To get the next page, use the ID of the last item from your previous request. The easiest way is to use the list object’s cursor field. If not provided, the API will return items from the beginning of the list.
See Expanding objects. Available options:
memberships
: Include basic membership data for each usermemberships.company
: Include both membership and associated company detailscompanies
: Include all companies associated with the user- You can request multiple expansions:
expand[]=memberships&expand[]=companies
Response
Returns a list object containing an array of user objects in the results
property. The response includes pagination information in the next
and previous
fields.