An Embeddable is displayed when:
- URL matching - the page must match the configured URL conditions.
- Segmentation matches - User is the right person (required but can be set to match All Users).
- Element targeting - Embeddables are rendered relative to a specific element on the page.
With the Chameleon API for Embeddables, you can:
- List all the Embeddables that follow a specified set of parameters.
- Retrieve a single Embeddable based on the
id. - Update an Embeddable to change Environments or publish/unpublish it.
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 |
archived_at | timestamp | The time when this was archived |
name | string | The name given by an administrator of Chameleon |
description | string | The internal description for this Embeddable |
style | string | The display style of this Embeddable: One of banner or card |
position | number | The order that these appear in lists (starting from 0) |
segment_ids | array<ID> | The Chameleon IDs of the configured Segments |
published_at | timestamp | The time this was most recently published |
tag_ids | array<ID> | The Chameleon IDs of the Tags attached to this model |
rate_unlimit_at | timestamp | This item is excluded from Rate limiting |
stats | object | Aggregated statistics for this model (all-time) |
stats.started_count | number | Number of your end-users who saw this |
stats.last_started_at | timestamp | Most recent time any user saw this |
stats.completed_count | number | Number of your end-users who completed/finished this |
stats.last_completed_at | timestamp | Most recent time any user completed/finished this |
stats.exited_count | number | Number of your end-users who dismissed/exited this |
stats.last_exited_at | timestamp | Most recent time any user dismissed/exited this |
List Embeddables
List all the Embeddables that follow a specified set of 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 |
HTTP Response
Retrieve an Embeddable
Retrieve a single Embeddable.HTTP Request
| param | - | description |
|---|---|---|
id | required | An Embeddable ID to lookup |
Update an Embeddable
Update a single Embeddable to change its properties or to Publish it.HTTP Request
| param | - | description |
|---|---|---|
id | required | An Embeddable ID to update |
url_group_id | optional | An Environments ID prefixed with + to add or - to remove the Environment |
tag_id | optional | A Tag ID prefixed with + to add or - to remove the Tag |
published_at | optional | The published time of this Embeddable (set to now to trigger a publish) |
iso8601 format
published_at to null
5e3c4232c712de666d55632a Environment use a + prefix
5e3c4232c712de666d55632a Environment use a - prefix

