For a full list of your User / Company Properties see the Properties API
The Chameleon User Profiles API allows you to:
- Create / Update custom User properties
- Retrieve a user by
id,uidandemail. - Search for users or get the count of users using any of the properties you have sent to us.
- Clear or reset a specific user’s data.
- Delete a user permanently
Schema
Fully-expanded profile when listed directly or embedded with expand param specified properly
| Property | Type | Description |
|---|---|---|
id | ID | The Chameleon ID |
created_at | timestamp | When this happened or when this was added to the Database |
updated_at | timestamp | The last time any property was updated |
uid | string | The external ID that came from your backend system |
company_id | ID | The Chameleon ID of the Company (only if associated) |
browser_x | number | Browser width in pixels |
browser_tz | number | Browser timezone in integer offset (+/-) from UTC |
browser_l | string | Language code as reported by the Accept-Language header |
browser_n | string | Browser name: One of chrome, firefox, safari, opera, ie10, ie11, or edge |
browser_k | string | Browser kind: One of desktop or mobile |
percent | number | Randomly assigned but stable, used for A/B testing |
last_seen_at | timestamp | When the user was las active on a page where Chameleon is installed |
last_seen_session_count | number | Number of sessions specified as a period of inactivity of last_seen_at of greater than 90 minutes |
delivery_ids | array<ID> | Ordered list of Delivery model IDs |
company | object | The expandable Company (only if associated) |
*any options | mixed | Any other options you have sent as Custom Properties will show up here too |
Non-expanded profile when embedded in another (i.e. Microsurvey response)
| Property | Type | Description |
|---|---|---|
id | ID | The Chameleon ID |
created_at | timestamp | When this happened or when this was added to the Database |
updated_at | timestamp | The last time any property was updated |
uid | string | The external ID that came from your backend system |
Create or Update a User
See the User Profiles Webhook for sending User data to ChameleonRetrieve a specific User
HTTP Request
| param | - | description |
|---|---|---|
id | optional | The Chameleon ID of the User Profile |
uid | optional | The User Profile identifier (typically the Database ID from your backend) |
email | optional | If you have sent an email address, this will be available for single-user lookup |
uid or email)
When using a GET request with parameters:
HTTP Response
Clear or Reset a User Profile
Clearing a profile consists of:- Resetting the properties such as browser width, last seen time, sessions count, etc..
- Removing Microsurvey responses.
- Reverts summary data from any actions this user took (i.e. Tour Started counts decremented appropriately).
- Removes and resets any Events that were tracked for this user.
- A new
percentis assigned andlast_cleared_atis updated to"$now". - A few other internal cleanup items.
HTTP Request
| param | - | description |
|---|---|---|
id | optional | A Chameleon User Profile ID to lookup |
uid | optional | The User Profile Identifier (typically the Database ID from your backend) |
HTTP Response
Delete a User Profile permanently
The ability to delete a User Permanently is part of our effort to allow your users to opt-out of continued data storage by Chameleon and its partners. The key actions taken directly after deleting a User, is to remove Associated data before then removing the User profile data. Associated data includes records of Chameleon Experiences, Events logged and any other internal metrics associated with actions the user has taken. At the end of the process no record of this user exists in our database. Additionally, any data stored in backups relating to user profile data in our database has a retention of 3 months.HTTP Request
| param | - | description |
|---|---|---|
| id | optional | A Chameleon User Profile ID to remove |
| uid | optional | The User Profile Identifier (typically the Database ID from your backend) |
email | optional | If you have sent an email address, this will be available for single-user lookup |

