Searching User Profiles through the Chameleon API allows you to:
- Search for a user by
id,uidandemail. - Search for users or get the Count of Users by any of the properties you have sent to us.
- Search for users by any of the interactions they had with Chameleon (answered a Microsurvey etc.).
Note: Rate Limiting applies according to the table below.
| endpoint | Maximum concurrent requests |
|---|---|
/profiles | 2 |
/profiles/count | 1 |
Schema
See the full User Profile schema.Examples
All of these examples are based directly on the full schema of Segmentation Filter Expressions.Note: A fully-fledged version of these examples is implemented in the Chameleon Builder section for Segments.Each example below is used as the value for the
filters key in the JSON request body:
1. User Profiles that Completed a Tour
2. User Profiles that exited a Tour within last 3 days
cond - A secondary time-based filter operator.
int - A secondary time-based filter # of days.
3. User Profiles that are an NPS promoter
mod - A secondary matching condition for range.
range - A secondary matching range (in this case, button index).
Note: For a 11-button NPS, value range are 0,1,2,3,4,5,6,7,8,9,10.
4. User Profiles that answered negatively to CES Microsurvey
mod - A secondary matching condition for range.
range - A secondary matching range (in this case, button index).
Note: For a 5-button CES, value range are 0,1,2,3,4.
5. User Profiles that were most recently active more than 7 days ago
6. Admins AND are responsible for 3 or more user invites
Full example using filters_op=or: Admins OR are responsible for 3 or more user invites
Query for users where either role is admin OR invited 3 or more users
Full example using filters_op=or and filter Groups
Query for users where either Admins AND are in a Non-North-American timezone
Full example using filters_op=or and filter Groups
Query for users where either Admins AND are either com the Acme account or have an Acme email address.
Searching Users
HTTP Request
| param | - | description |
|---|---|---|
segment_id | optional | The Chameleon Segment ID from the List of Segments |
filters | optional | The array of Segmentation filter expressions |
filters_op | optional | The operator to apply between each filter. Use either or or and (default) |
expand | optional | Object that specifies relationships to include/exclude. Supported keys are profile and company |
expand.profile | optional | use values of all, min to control the properties present in the profile. Defaults to all |
expand.company | optional | use values of all, min or skip to control the properties present in the company. Defaults to min |
Using the expand parameter
- A
profilekey will always be present with an object value. Thecompany(embedded withinprofile) will be missing when the User Profile is not attached to a Company, otherwise it will be an object.

