With the Chameleon API for Segments, you can:
- Retrieve a list of segments according to the specified parameters.
- Retrieve a single segment based on the
id. - List all the Chameleon Experiences (Tours, Microsurveys, Launchers) that are connected to a defined segment.
Schema
| 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 |
name | string | The name given by an administrator of Chameleon |
items | array<SegmentFilter> | An array of items that each define a Segmentation Filter expression |
items_op | enum | If each filter item is joined with logical AND or OR. One of and or or |
For a full list of your User / Company Properties see the Properties API
Listing Segments
Retrieve a list of segments according to the specified parameters.HTTP Request
| param | - | description |
|---|---|---|
limit | optional | Defaults to 50 with a maximum of 500 |
before | optional | Used when paginating, use directly from the cursor object from the previous response |
before | optional | Read as “created before” and can be given as a timestamp to get only limit items that were created before this time |
after | optional | Read as “created after” and can be given as a timestamp or ID to get only limit items that were created after this time |
cursor.before
HTTP Response
Showing a Segment
Retrieve a single Segment.HTTP Request
| param | - | description |
|---|---|---|
id | required | A Segment ID to lookup |
HTTP Response
Listing Related Experiences
A Segment can be configured to be attached to many Chameleon Experiences, including Microsurveys, Tours and Launchers and Rate Limit Groups. This endpoint allows you to list any of these items that are currently attached to the Segment given with the IDHTTP Request
| param | - | description |
|---|---|---|
id | required | A Segment ID to lookup |
kind | required | One of tour, survey or launcher |

