Kameleoon
App · 25 actions
Run Kameleoon experiments from workflows: create, launch and stop A/B tests, read their results, manage goals, variations and feature flags, and follow new and changed experiments, goals, segments, feature flags and personalizations.
Actions
| Action | What it does |
|---|---|
| Change experiment status | Launch, pause, resume, stop or schedule an experiment, or send it back to draft. |
| Create experiment | Create a draft A/B experiment on a project. |
| Create feature flag | Create a feature flag on a project. |
| Create goal | Create a goal on a project: a click on an element, a visit to a page, a number of pages viewed, time spent, scroll depth, or a custom goal triggered by code. |
| Create variation | Add a variation to an experiment, with the JavaScript and CSS that change the page. |
| Delete experiment | Delete an experiment with its variations and results. |
| Delete feature flag | Delete a feature flag from every environment. |
| Delete goal | Delete a goal. |
| Get experiment | Get an experiment: its status, dates, goals, variations and traffic allocation. |
| Get feature flag | Get a feature flag: its variations, variables and each environment's setting. |
| Get goal | Get a goal: its type, what it tracks and its status. |
| Get project | Get a project's settings: its URL, site code, domains and whether the Kameleoon script is installed. |
| Get results | Read a results report by the data code Request experiment results gave. |
| List experiments | List experiments, optionally only one project's or only those with a given status. |
| List feature flags | List feature flags with their environments and whether each is on, optionally one project's. |
| List goals | List the goals (conversions such as clicks, page visits or purchases) experiments measure, optionally one project's. |
| List personalizations | List personalizations (content shown to a segment of visitors), optionally one project's. |
| List projects | List the projects (websites and apps) in your Kameleoon account, with each one's ID and site code. |
| List segments | List the segments (groups of visitors) experiments and personalizations target, optionally one project's. |
| List variations | List the variations of an experiment, each with its JavaScript and CSS. |
| Request experiment results | Ask Kameleoon to prepare an experiment's results for a period. |
| Turn feature flag on or off | Turn a feature flag on or off in one environment, such as production. |
| Update experiment | Change an experiment's name, description, page, goals, tags, shared code or traffic allocation. |
| Update goal | Change a goal's name, description, tags or whether it counts every conversion. |
| Update variation | Change a variation's name, JavaScript or CSS. |
Change experiment status
Launch, pause, resume, stop or schedule an experiment, or send it back to draft.
Inputs
- Experiment
experiment_idnumberRequired - The experiment.At least 1.
- Change
changetextRequired - What to do with the experiment. Launching shows it to real visitors.One of:
ACTIVATE(Launch),PAUSE,RESUME,STOP,SCHEDULE,DEACTIVATE,REVERT_TO_DRAFT(Back to draft).
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"baseURL": "example",
"dateCreated": "example",
"dateEnded": "example",
"dateModified": "example",
"dateStarted": "example",
"dateStatusModified": "example",
"description": "example",
"deviations": {},
"goals": [
1
],
"hypothesis": "example",
"id": 1,
"isArchived": true,
"mainGoalId": 1,
"name": "example",
"siteCode": "example",
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"trafficAllocationMethod": "example",
"type": "example",
"variations": [
1
]
}
}Create experiment
Create a draft A/B experiment on a project. Kameleoon adds its first variation, which List variations shows.
Inputs
- Project
site_idnumberRequired - The Kameleoon project (Kameleoon's API calls it a site).At least 1.
- Name
nametextRequired - The experiment's name.
- Page URL
base_urltextRequired - The page the editor and preview open, such as `https://www.example.com/`.
- Editor
typetext - Whether variations are built in the graphic editor or written as code. Leave empty for code.One of:
CLASSIC(Graphic editor (classic)),DEVELOPER(Code editor (developer)). Default:DEVELOPER. - Description
descriptiontext - What the experiment is about.
- Hypothesis
hypothesistext - What you expect the change to do.
- Tags
tagslist - Tags to label it with in Kameleoon.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"baseURL": "example",
"dateCreated": "example",
"dateEnded": "example",
"dateModified": "example",
"dateStarted": "example",
"dateStatusModified": "example",
"description": "example",
"deviations": {},
"goals": [
1
],
"hypothesis": "example",
"id": 1,
"isArchived": true,
"mainGoalId": 1,
"name": "example",
"siteCode": "example",
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"trafficAllocationMethod": "example",
"type": "example",
"variations": [
1
]
}
}Create feature flag
Create a feature flag on a project. Kameleoon sets up its development, staging and production environments.
Inputs
- Project
site_codetextRequired - The project the feature flag belongs to, by its site code.
- Feature key
feature_keytextRequired - The key your code checks, such as `new_checkout`: lower-case letters, digits, - and _.
- Name
nametextRequired - The flag's name.
- Description
descriptiontext - What the flag controls.
- Tags
tagslist - Tags to label it with in Kameleoon.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"archived": true,
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"environmentConfigurations": [
{
"dateModified": "example",
"defaultVariationKey": "example",
"environmentKey": "example",
"featureEnabled": true
}
],
"featureKey": "example",
"health": "example",
"id": 1,
"name": "example",
"primaryGoalId": 1,
"siteCode": "example",
"tags": [
"example"
],
"variations": [
{
"key": "example",
"name": "example"
}
]
}
}Create goal
Create a goal on a project: a click on an element, a visit to a page, a number of pages viewed, time spent, scroll depth, or a custom goal triggered by code.
Inputs
- Project
site_idnumberRequired - The Kameleoon project (Kameleoon's API calls it a site).At least 1.
- Name
nametextRequired - The goal's name.
- Goal type
typetextRequired - What the goal counts.One of:
CUSTOM(Custom (triggered by code)),CLICK(Click on an element),URL(Visit to a page),PAGE_VIEWS(Number of pages viewed),TIME_SPENT(Time spent on the site),SCROLL(Scroll depth). - CSS selector
css_selectortext - For a click goal: the CSS selector of the element, such as `.cta-button`.
- Page URL
urltext - For a page visit goal: the URL, or part of it, to match.
- URL match
url_matchtext - For a page visit goal: how the URL is matched. Leave empty for contains.One of:
CONTAINS(URL contains),CORRESPONDS_EXACTLY(URL is exactly),REGULAR_EXPRESSION(URL matches a regular expression). - Amount
amountnumber - For pages viewed, the number of pages; for time spent, seconds; for scroll depth, the percentage or pixels.At least 0.
- Comparison
comparisontext - For pages viewed or time spent: how the amount is compared. Leave empty for more than.One of:
MORE_THAN(More than),EQUALS(Exactly),LESS_THAN(Less than). - Scroll measured in
scroll_typetext - For scroll depth: what the amount measures. Leave empty for a percentage.One of:
PERCENTAGE(Percentage of the page),PIXELS_HEIGHT(Pixels from the top),ELEMENT(An element). - JavaScript
js_codetext - For a custom goal: JavaScript that runs on every page and calls `triggerGoal()` to count a conversion.
- Count every conversion
multiple_conversionstrue/false - On to count every conversion in a visit, not only the first.
- Status
statustext - Whether the goal is tracked. Leave empty for active.One of:
ACTIVE,INACTIVE. - Description
descriptiontext - What the goal measures.
- Tags
tagslist - Tags to label it with in Kameleoon.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"hasMultipleConversions": true,
"id": 1,
"name": "example",
"params": {},
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"type": "example"
}
}Create variation
Add a variation to an experiment, with the JavaScript and CSS that change the page.
Inputs
- Project
site_idnumberRequired - The Kameleoon project (Kameleoon's API calls it a site).At least 1.
- Experiment
experiment_idnumberRequired - The experiment the variation is for.At least 1.
- Name
nametextRequired - The variation's name.
- JavaScript
js_codetext - JavaScript the variation runs on the page.
- CSS
css_codetext - CSS the variation adds to the page.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"creationMode": "example",
"cssCode": "example",
"experimentId": 1,
"id": 1,
"isJsCodeAfterDomReady": true,
"jsCode": "example",
"name": "example",
"personalizationId": 1,
"siteId": 1
}
}Delete experiment
Delete an experiment with its variations and results. This can't be undone.
Inputs
- Experiment
experiment_idnumberRequired - The experiment.At least 1.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"deleted": true,
"id": "example"
}
}Delete feature flag
Delete a feature flag from every environment. Code that checks it gets its default. This can't be undone.
Inputs
- Project
site_codetextRequired - The project the feature flag belongs to, by its site code.
- Feature flag
feature_keytextRequired - The feature flag, by its key.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"deleted": true,
"id": "example"
}
}Delete goal
Delete a goal. Experiments stop measuring it. This can't be undone.
Inputs
- Goal
goal_idnumberRequired - The goal.At least 1.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"deleted": true,
"id": "example"
}
}Get experiment
Get an experiment: its status, dates, goals, variations and traffic allocation.
Inputs
- Experiment
experiment_idnumberRequired - The experiment.At least 1.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"baseURL": "example",
"dateCreated": "example",
"dateEnded": "example",
"dateModified": "example",
"dateStarted": "example",
"dateStatusModified": "example",
"description": "example",
"deviations": {},
"goals": [
1
],
"hypothesis": "example",
"id": 1,
"isArchived": true,
"mainGoalId": 1,
"name": "example",
"siteCode": "example",
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"trafficAllocationMethod": "example",
"type": "example",
"variations": [
1
]
}
}Get feature flag
Get a feature flag: its variations, variables and each environment's setting.
Inputs
- Project
site_codetextRequired - The project the feature flag belongs to, by its site code.
- Feature flag
feature_keytextRequired - The feature flag, by its key.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"archived": true,
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"environmentConfigurations": [
{
"dateModified": "example",
"defaultVariationKey": "example",
"environmentKey": "example",
"featureEnabled": true
}
],
"featureKey": "example",
"health": "example",
"id": 1,
"name": "example",
"primaryGoalId": 1,
"siteCode": "example",
"tags": [
"example"
],
"variations": [
{
"key": "example",
"name": "example"
}
]
}
}Get goal
Get a goal: its type, what it tracks and its status.
Inputs
- Goal
goal_idnumberRequired - The goal.At least 1.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"hasMultipleConversions": true,
"id": 1,
"name": "example",
"params": {},
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"type": "example"
}
}Get project
Get a project's settings: its URL, site code, domains and whether the Kameleoon script is installed.
Inputs
- Project
site_idnumberRequired - The Kameleoon project (Kameleoon's API calls it a site).At least 1.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"code": "example",
"dateCreated": "example",
"description": "example",
"domainNames": [
"example"
],
"id": 1,
"isKameleoonEnabled": true,
"isScriptActive": true,
"name": "example",
"tags": [
"example"
],
"type": "example",
"url": "example"
}
}Get results
Read a results report by the data code Request experiment results gave. Its status is WAITING until the report is ready.
Inputs
- Data code
data_codetextRequired - The data code Request experiment results returned.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"data": {},
"errorDescription": "example",
"status": "READY"
}
}List experiments
List experiments, optionally only one project's or only those with a given status.
Inputs
- Project
site_idnumber - Only records of this project. Leave empty for every project.At least 1.
- Status
statustext - Only experiments with this status. Leave empty for every status.One of:
ACTIVE,PAUSED,STOPPED,DRAFT,SCHEDULED. - Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Records per page
per_pagenumber - How many records a page holds, up to 200. Leave empty for 50.From 1 to 200.
Outputs
datalist- The response from Kameleoon.
Example output
{
"data": [
{
"baseURL": "example",
"dateCreated": "example",
"dateEnded": "example",
"dateModified": "example",
"dateStarted": "example",
"dateStatusModified": "example",
"description": "example",
"deviations": {},
"goals": [
1
],
"hypothesis": "example",
"id": 1,
"isArchived": true,
"mainGoalId": 1,
"name": "example",
"siteCode": "example",
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"trafficAllocationMethod": "example",
"type": "example",
"variations": [
1
]
}
]
}List feature flags
List feature flags with their environments and whether each is on, optionally one project's.
Inputs
- Project
site_codetext - Only this project's flags. Leave empty for every project.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Records per page
per_pagenumber - How many records a page holds, up to 200. Leave empty for 50.From 1 to 200.
Outputs
datalist- The response from Kameleoon.
Example output
{
"data": [
{
"archived": true,
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"environmentConfigurations": [
{
"dateModified": "example",
"defaultVariationKey": "example",
"environmentKey": "example",
"featureEnabled": true
}
],
"featureKey": "example",
"health": "example",
"id": 1,
"name": "example",
"primaryGoalId": 1,
"siteCode": "example",
"tags": [
"example"
],
"variations": [
{
"key": "example",
"name": "example"
}
]
}
]
}List goals
List the goals (conversions such as clicks, page visits or purchases) experiments measure, optionally one project's.
Inputs
- Project
site_idnumber - Only records of this project. Leave empty for every project.At least 1.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Records per page
per_pagenumber - How many records a page holds, up to 200. Leave empty for 50.From 1 to 200.
Outputs
datalist- The response from Kameleoon.
Example output
{
"data": [
{
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"hasMultipleConversions": true,
"id": 1,
"name": "example",
"params": {},
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"type": "example"
}
]
}List personalizations
List personalizations (content shown to a segment of visitors), optionally one project's.
Inputs
- Project
site_idnumber - Only records of this project. Leave empty for every project.At least 1.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Records per page
per_pagenumber - How many records a page holds, up to 200. Leave empty for 50.From 1 to 200.
Outputs
datalist- The response from Kameleoon.
Example output
{
"data": [
{
"baseURL": "example",
"dateCreated": "example",
"dateEnded": "example",
"dateModified": "example",
"dateStarted": "example",
"description": "example",
"goals": [
1
],
"id": 1,
"isArchived": true,
"mainGoalId": 1,
"name": "example",
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"type": "example"
}
]
}List projects
List the projects (websites and apps) in your Kameleoon account, with each one's ID and site code.
Inputs
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Records per page
per_pagenumber - How many records a page holds, up to 200. Leave empty for 50.From 1 to 200.
Outputs
datalist- The response from Kameleoon.
Example output
{
"data": [
{
"code": "example",
"dateCreated": "example",
"description": "example",
"domainNames": [
"example"
],
"id": 1,
"isKameleoonEnabled": true,
"isScriptActive": true,
"name": "example",
"tags": [
"example"
],
"type": "example",
"url": "example"
}
]
}List segments
List the segments (groups of visitors) experiments and personalizations target, optionally one project's.
Inputs
- Project
site_idnumber - Only records of this project. Leave empty for every project.At least 1.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Records per page
per_pagenumber - How many records a page holds, up to 200. Leave empty for 50.From 1 to 200.
Outputs
datalist- The response from Kameleoon.
Example output
{
"data": [
{
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"id": 1,
"name": "example",
"segmentType": "example",
"siteId": 1,
"tags": [
"example"
]
}
]
}List variations
List the variations of an experiment, each with its JavaScript and CSS.
Inputs
- Experiment
experiment_idnumberRequired - The experiment.At least 1.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first page.At least 1.
- Records per page
per_pagenumber - How many records a page holds, up to 200. Leave empty for 50.From 1 to 200.
Outputs
datalist- The response from Kameleoon.
Example output
{
"data": [
{
"creationMode": "example",
"cssCode": "example",
"experimentId": 1,
"id": 1,
"isJsCodeAfterDomReady": true,
"jsCode": "example",
"name": "example",
"personalizationId": 1,
"siteId": 1
}
]
}Request experiment results
Ask Kameleoon to prepare an experiment's results for a period. It returns a data code; Get results reads the report with it.
Inputs
- Experiment
experiment_idnumberRequired - The experiment.At least 1.
- From
startdate and timeRequired - The start of the period to report on.
- To
enddate and time - The end of the period. Leave empty for now.
- Goals
goal_idslist - Only these goals. Leave empty for every goal of the experiment.
- Count conversions
conversion_typetext - Whether every conversion counts, or each visit at most once. Leave empty for every conversion.One of:
ALL_CONVERSION(Every conversion),CONVERTED_VISITS(Converted visits (once per visit)). Default:ALL_CONVERSION. - Unique visitors
unique_visitorstrue/false - On to count unique visitors rather than visits.
- Sequential testing
sequential_testingtrue/false - On to include the sequential testing result.
- Bayesian probability
bayesiantrue/false - On to include the Bayesian probability of each variation winning.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"dataCode": "example"
}
}Turn feature flag on or off
Turn a feature flag on or off in one environment, such as production.
Inputs
- Project
site_codetextRequired - The project the feature flag belongs to, by its site code.
- Feature flag
feature_keytextRequired - The feature flag, by its key.
- Environment
environmenttextRequired - The environment, such as `production`.
- On
enabledtrue/falseRequired - On to turn the flag on in the environment, off to turn it off.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"archived": true,
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"environmentConfigurations": [
{
"dateModified": "example",
"defaultVariationKey": "example",
"environmentKey": "example",
"featureEnabled": true
}
],
"featureKey": "example",
"health": "example",
"id": 1,
"name": "example",
"primaryGoalId": 1,
"siteCode": "example",
"tags": [
"example"
],
"variations": [
{
"key": "example",
"name": "example"
}
]
}
}Update experiment
Change an experiment's name, description, page, goals, tags, shared code or traffic allocation. Fields left empty stay as they are.
Inputs
- Experiment
experiment_idnumberRequired - The experiment.At least 1.
- Name
nametext - The new name.
- Description
descriptiontext - The new description.
- Hypothesis
hypothesistext - The new hypothesis.
- Page URL
base_urltext - The page the editor and preview open.
- Goals
goalslist - The goals the experiment measures. This replaces its current goals.
- Main goal
main_goal_idnumber - The goal that decides the winning variation.At least 1.
- Traffic allocation
traffic_allocationtext - How visitors are split between variations.One of:
MANUAL(Manual split),MULTI_ARMED_BANDIT(Multi-armed bandit),CONTEXTUAL_BANDIT(Contextual bandit). - JavaScript for all variations
common_jstext - JavaScript that runs in every variation.
- CSS for all variations
common_csstext - CSS applied in every variation.
- Tags
tagslist - The experiment's tags. This replaces its current tags.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"baseURL": "example",
"dateCreated": "example",
"dateEnded": "example",
"dateModified": "example",
"dateStarted": "example",
"dateStatusModified": "example",
"description": "example",
"deviations": {},
"goals": [
1
],
"hypothesis": "example",
"id": 1,
"isArchived": true,
"mainGoalId": 1,
"name": "example",
"siteCode": "example",
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"trafficAllocationMethod": "example",
"type": "example",
"variations": [
1
]
}
}Update goal
Change a goal's name, description, tags or whether it counts every conversion. Fields left empty stay as they are.
Inputs
- Goal
goal_idnumberRequired - The goal.At least 1.
- Name
nametext - The new name.
- Description
descriptiontext - The new description.
- Count every conversion
multiple_conversionstrue/false - On to count every conversion in a visit, off for only the first.
- Tags
tagslist - The goal's tags. This replaces its current tags.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"dateCreated": "example",
"dateModified": "example",
"description": "example",
"hasMultipleConversions": true,
"id": 1,
"name": "example",
"params": {},
"siteId": 1,
"status": "example",
"tags": [
"example"
],
"type": "example"
}
}Update variation
Change a variation's name, JavaScript or CSS. Fields left empty stay as they are.
Inputs
- Variation
variation_idnumberRequired - The variation, from List variations.At least 1.
- Name
nametext - The new name.
- JavaScript
js_codetext - The variation's JavaScript, replacing what it has.
- CSS
css_codetext - The variation's CSS, replacing what it has.
Outputs
dataobject- The response from Kameleoon.
Example output
{
"data": {
"creationMode": "example",
"cssCode": "example",
"experimentId": 1,
"id": 1,
"isJsCodeAfterDomReady": true,
"jsCode": "example",
"name": "example",
"personalizationId": 1,
"siteId": 1
}
}