Chameleon

App · 25 actions

Send users, companies and events to Chameleon, look up and delete them, publish tours and microsurveys, show one to a user, read microsurvey responses and tour progress, manage webhooks, and follow new responses, tour completions and new companies.

Actions

ActionWhat it does
Cancel deliveryCancel a delivery that hasn't been shown yet.
Create or update companyAdd a company, or update the one with this company ID.
Create or update userAdd a user profile, or update the one with this user ID or email address.
Create webhookSend Chameleon's events, such as finished microsurveys, to a URL.
Delete companyDelete a company, and take it off its users.
Delete userDelete a user and everything Chameleon recorded about them, for good.
Delete webhookRemove a webhook, so its URL gets no more events.
Get companyGet a company with every property Chameleon holds for it.
Get microsurveyGet a microsurvey with its publish state and statistics.
Get segmentGet a segment and its filters.
Get tourGet a tour with its publish state and statistics.
Get userGet a user profile with every property Chameleon holds for it.
List companiesList companies, newest first.
List deliveriesList deliveries, newest first, optionally for one tour or microsurvey or one user.
List microsurvey responsesList a microsurvey's responses, newest first: the button clicked, any comment, and who answered.
List microsurveysList microsurveys with their publish state and response counts.
List segmentsList segments, newest first.
List tour interactionsList who saw a tour and where they got to: started, completed, exited or displayed.
List toursList tours with their publish state and how many users started, completed and exited them.
List webhooksList the account's webhooks with when each last ran and whether it worked.
Search usersFind the users in a segment, or matching filters on their properties and what they did in Chameleon.
Show tour or microsurvey to userShow a published tour or microsurvey to one user the next time they load a page (a delivery).
Track eventRecord an event a user did, for segmenting, goals and launcher items.
Update microsurveyPublish or unpublish a microsurvey, or add or remove a tag or environment.
Update tourPublish or unpublish a tour, or add or remove a tag or environment.

Cancel delivery

Cancel a delivery that hasn't been shown yet.

Inputs

Delivery IDdelivery_idtextRequired
The delivery's ID, which Show tour or microsurvey to user returns.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "delivery": {
      "id": "example"
    }
  }
}

Create or update company

Add a company, or update the one with this company ID. Only the properties sent change.

Inputs

Company IDuidtextRequired
The company's ID in your product.
Other propertiespropertiesobject
Other properties to set, by name, such as plan or role.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "company": {
      "id": "example"
    }
  }
}

Create or update user

Add a user profile, or update the one with this user ID or email address. Only the properties sent change.

Inputs

User IDuidtext
The user's ID in your product, the same one your app sends Chameleon. Needed to create a user.
Emailemailtext
The user's email address.
Company IDcompany_uidtext
The ID, in your product, of the company the user belongs to.
Other propertiespropertiesobject
Other properties to set, by name, such as plan or role.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "profile": {
      "id": "example"
    }
  }
}

Create webhook

Send Chameleon's events, such as finished microsurveys, to a URL. An account has at most 5.

Inputs

URLurltextRequired
Where to send the events. It must start with https://.
EventstopicslistRequired
The events to send.One or more of: response.finished (Microsurvey response finished), tour.started, tour.completed, tour.exited, tour.snoozed, tour.button.clicked, survey.started, survey.completed, survey.exited, survey.snoozed, and 16 more.
Tours and microsurveysexperience_idslist
Only events about these tours and microsurveys. Leave empty for all of them.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "webhook": {
      "id": "example",
      "last_item_at": "example",
      "last_item_error": "example",
      "last_item_state": "example",
      "name": "example",
      "uid": "example"
    }
  }
}

Delete company

Delete a company, and take it off its users. Optionally delete its users too.

Inputs

Find company byfind_bytext
What the company is looked up by. Leave empty for its company ID.One of: uid (User ID), id (Chameleon ID). Default: uid.
CompanycompanytextRequired
The company's ID from your product, or its Chameleon ID, matching Find company by.
Delete its users toowith_userstrue/false
Also delete every user in the company.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "deletion": {
      "id": "example"
    },
    "deletions": [
      {
        "id": "example"
      }
    ]
  }
}

Delete user

Delete a user and everything Chameleon recorded about them, for good.

Inputs

Find user byfind_bytext
What the user is looked up by. Leave empty for their user ID.One of: uid (User ID), email (Email address), id (Chameleon ID). Default: uid.
UserprofiletextRequired
The user's ID from your product, email address or Chameleon ID, matching Find user by.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "deletion": {
      "id": "example"
    },
    "profile": {
      "id": "example"
    }
  }
}

Delete webhook

Remove a webhook, so its URL gets no more events.

Inputs

Webhookwebhook_idtextRequired
The webhook.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "webhook": {
      "id": "example"
    }
  }
}

Get company

Get a company with every property Chameleon holds for it.

Inputs

Find company byfind_bytext
What the company is looked up by. Leave empty for its company ID.One of: uid (User ID), id (Chameleon ID). Default: uid.
CompanycompanytextRequired
The company's ID from your product, or its Chameleon ID, matching Find company by.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "company": {
      "created_at": "example",
      "id": "example",
      "uid": "example"
    }
  }
}

Get microsurvey

Get a microsurvey with its publish state and statistics.

Inputs

Microsurveysurvey_idtextRequired
The microsurvey.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "survey": {
      "created_at": "example",
      "dashboard_url": "example",
      "id": "example",
      "name": "example",
      "position": 1,
      "published_at": "example",
      "scheduled_publish_at": "example",
      "scheduled_unpublish_at": "example",
      "segment_ids": [
        "example"
      ],
      "stats": {
        "completed_count": 1,
        "exited_count": 1,
        "last_completed_at": "example",
        "last_exited_at": "example",
        "last_started_at": "example",
        "started_count": 1
      },
      "tag_ids": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}

Get segment

Get a segment and its filters.

Inputs

Segmentsegment_idtextRequired
The segment.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "segment": {
      "created_at": "example",
      "id": "example",
      "items": [
        {
          "id": "example",
          "kind": "example",
          "op": "example",
          "prop": "example",
          "value": "example"
        }
      ],
      "items_op": "example",
      "name": "example",
      "updated_at": "example"
    }
  }
}

Get tour

Get a tour with its publish state and statistics.

Inputs

Tourtour_idtextRequired
The tour.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "tour": {
      "created_at": "example",
      "dashboard_url": "example",
      "id": "example",
      "name": "example",
      "position": 1,
      "published_at": "example",
      "scheduled_publish_at": "example",
      "scheduled_unpublish_at": "example",
      "segment_ids": [
        "example"
      ],
      "stats": {
        "completed_count": 1,
        "exited_count": 1,
        "last_completed_at": "example",
        "last_exited_at": "example",
        "last_started_at": "example",
        "started_count": 1
      },
      "style": "example",
      "tag_ids": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}

Get user

Get a user profile with every property Chameleon holds for it.

Inputs

Find user byfind_bytext
What the user is looked up by. Leave empty for their user ID.One of: uid (User ID), email (Email address), id (Chameleon ID). Default: uid.
UserprofiletextRequired
The user's ID from your product, email address or Chameleon ID, matching Find user by.
Include companyfull_profilestrue/false
Also return every property of the user's company.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "profile": {
      "browser_k": "example",
      "browser_l": "example",
      "company_id": "example",
      "created_at": "example",
      "delivery_ids": [
        "example"
      ],
      "email": "example",
      "id": "example",
      "last_seen_at": "example",
      "last_seen_session_count": 1,
      "uid": "example",
      "updated_at": "example"
    }
  }
}

List companies

List companies, newest first.

Inputs

Records to returnlimitnumber
How many to return, up to 500. Leave empty for 50.From 1 to 500.
Next page cursorbeforetext
The cursor's before value from the last page, to read the next page.
Created aftercreated_afterdate and time
Only records created at or after this time.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "companies": [
      {
        "created_at": "example",
        "id": "example",
        "uid": "example"
      }
    ],
    "cursor": {
      "before": "example",
      "limit": 1
    }
  }
}

List deliveries

List deliveries, newest first, optionally for one tour or microsurvey or one user.

Inputs

Tour or microsurveymodel_idtext
Only deliveries of this tour or microsurvey.
User's Chameleon IDprofile_idtext
Only deliveries to this user, by Chameleon ID.
Records to returnlimitnumber
How many to return, up to 500. Leave empty for 50.From 1 to 500.
Next page cursorbeforetext
The cursor's before value from the last page, to read the next page.
Created aftercreated_afterdate and time
Only records created at or after this time.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "deliveries": [
      {
        "at": "example",
        "created_at": "example",
        "id": "example",
        "idempotency_key": "example",
        "interaction_id": "example",
        "model_id": "example",
        "model_kind": "example",
        "once": true,
        "options": {},
        "profile_id": "example",
        "use_segmentation": true
      }
    ]
  }
}

List microsurvey responses

List a microsurvey's responses, newest first: the button clicked, any comment, and who answered.

Inputs

Microsurveysurvey_idtextRequired
The microsurvey.
Order byordertext
Sort by when each was created or last updated, newest first. Leave empty for created.One of: created_at (Created), updated_at (Last updated). Default: created_at.
Full user detailsfull_profilestrue/false
Return every property of each user, not just their IDs.
Records to returnlimitnumber
How many to return, up to 500. Leave empty for 50.From 1 to 500.
Next page cursorbeforetext
The cursor's before value from the last page, to read the next page.
Created aftercreated_afterdate and time
Only records created at or after this time.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "cursor": {
      "before": "example",
      "limit": 1
    },
    "responses": [
      {
        "button_order": 1,
        "button_text": "example",
        "created_at": "example",
        "dropdown_items": "example",
        "finished_at": "example",
        "href": "example",
        "id": "example",
        "input_text": "example",
        "profile": {
          "email": "example",
          "id": "example",
          "uid": "example"
        },
        "profile_id": "example",
        "survey_id": "example",
        "updated_at": "example"
      }
    ]
  }
}

List microsurveys

List microsurveys with their publish state and response counts.

Inputs

Records to returnlimitnumber
How many to return, up to 500. Leave empty for 50.From 1 to 500.
Next page cursorbeforetext
The cursor's before value from the last page, to read the next page.
Created aftercreated_afterdate and time
Only records created at or after this time.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "cursor": {
      "before": "example",
      "limit": 1
    },
    "surveys": [
      {
        "created_at": "example",
        "dashboard_url": "example",
        "id": "example",
        "name": "example",
        "position": 1,
        "published_at": "example",
        "scheduled_publish_at": "example",
        "scheduled_unpublish_at": "example",
        "segment_ids": [
          "example"
        ],
        "stats": {
          "completed_count": 1,
          "exited_count": 1,
          "last_completed_at": "example",
          "last_exited_at": "example",
          "last_started_at": "example",
          "started_count": 1
        },
        "tag_ids": [
          "example"
        ],
        "updated_at": "example"
      }
    ]
  }
}

List segments

List segments, newest first.

Inputs

Records to returnlimitnumber
How many to return, up to 500. Leave empty for 50.From 1 to 500.
Next page cursorbeforetext
The cursor's before value from the last page, to read the next page.
Created aftercreated_afterdate and time
Only records created at or after this time.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "cursor": {
      "before": "example",
      "limit": 1
    },
    "segments": [
      {
        "created_at": "example",
        "id": "example",
        "items": [
          {
            "id": "example",
            "kind": "example",
            "op": "example",
            "prop": "example",
            "value": "example"
          }
        ],
        "items_op": "example",
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}

List tour interactions

List who saw a tour and where they got to: started, completed, exited or displayed.

Inputs

Tourtour_idtextRequired
The tour.
Order byordertext
Sort by when each was created or last updated, newest first. Leave empty for created.One of: created_at (Created), updated_at (Last updated). Default: created_at.
Full user detailsfull_profilestrue/false
Return every property of each user, not just their IDs.
Records to returnlimitnumber
How many to return, up to 500. Leave empty for 50.From 1 to 500.
Next page cursorbeforetext
The cursor's before value from the last page, to read the next page.
Created aftercreated_afterdate and time
Only records created at or after this time.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "cursor": {
      "before": "example",
      "limit": 1
    },
    "interactions": [
      {
        "created_at": "example",
        "goal_at": "example",
        "group_kind": "example",
        "id": "example",
        "profile": {
          "email": "example",
          "id": "example",
          "uid": "example"
        },
        "state": "example",
        "tour_id": "example",
        "updated_at": "example"
      }
    ]
  }
}

List tours

List tours with their publish state and how many users started, completed and exited them.

Inputs

Records to returnlimitnumber
How many to return, up to 500. Leave empty for 50.From 1 to 500.
Next page cursorbeforetext
The cursor's before value from the last page, to read the next page.
Created aftercreated_afterdate and time
Only records created at or after this time.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "cursor": {
      "before": "example",
      "limit": 1
    },
    "tours": [
      {
        "created_at": "example",
        "dashboard_url": "example",
        "id": "example",
        "name": "example",
        "position": 1,
        "published_at": "example",
        "scheduled_publish_at": "example",
        "scheduled_unpublish_at": "example",
        "segment_ids": [
          "example"
        ],
        "stats": {
          "completed_count": 1,
          "exited_count": 1,
          "last_completed_at": "example",
          "last_exited_at": "example",
          "last_started_at": "example",
          "started_count": 1
        },
        "style": "example",
        "tag_ids": [
          "example"
        ],
        "updated_at": "example"
      }
    ]
  }
}

List webhooks

List the account's webhooks with when each last ran and whether it worked.

Inputs

None.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "webhooks": [
      {
        "id": "example",
        "last_item_at": "example",
        "last_item_error": "example",
        "last_item_state": "example",
        "name": "example",
        "uid": "example"
      }
    ]
  }
}

Search users

Find the users in a segment, or matching filters on their properties and what they did in Chameleon.

Inputs

Segmentsegment_idtext
Only users in this segment.
Filtersfilterslist
Chameleon filter expressions, such as {"kind": "property", "prop": "role", "op": "eq", "value": "admin"}.
Matchfilters_optext
Whether every filter or any filter must match. Leave empty for every filter.One of: and (All filters match), or (Any filter matches). Default: and.
Full user detailsfull_profilestrue/false
Return every property of each user, not just their IDs.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "profiles": [
      {
        "browser_k": "example",
        "browser_l": "example",
        "company_id": "example",
        "created_at": "example",
        "delivery_ids": [
          "example"
        ],
        "email": "example",
        "id": "example",
        "last_seen_at": "example",
        "last_seen_session_count": 1,
        "uid": "example",
        "updated_at": "example"
      }
    ]
  }
}

Show tour or microsurvey to user

Show a published tour or microsurvey to one user the next time they load a page (a delivery).

Inputs

Show amodel_kindtextRequired
Whether it's a tour or a microsurvey.One of: tour, survey (Microsurvey).
Tour or microsurveymodel_idtextRequired
The tour or microsurvey. It must be published.
Find user byfind_bytext
What the user is looked up by. Leave empty for their user ID.One of: uid (User ID), email (Email address), id (Chameleon ID). Default: uid.
UserprofiletextRequired
The user's ID from your product, email address or Chameleon ID, matching Find user by.
Personalizationoptionsobject
Values for the experience's merge tags, by name, such as title or button text.
Show fromstarts_atdate and time
Don't show it before this time.
Show untilends_atdate and time
Don't show it after this time.
Only if not seen beforeoncetrue/false
Skip it if the user has seen it before.
Check its segmentuse_segmentationtrue/false
Only show it if the user is in its segment at that moment.
Only once per keyidempotency_keytext
A key that makes sure this user gets this at most once, however many times the step runs.
Replace the oldest if fullreplace_oldesttrue/false
When the user already has the most pending deliveries (3), drop their oldest instead of failing.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "delivery": {
      "at": "example",
      "created_at": "example",
      "id": "example",
      "idempotency_key": "example",
      "interaction_id": "example",
      "model_id": "example",
      "model_kind": "example",
      "once": true,
      "options": {},
      "profile_id": "example",
      "use_segmentation": true
    }
  }
}

Track event

Record an event a user did, for segmenting, goals and launcher items.

Inputs

User IDuidtextRequired
The user's ID in your product. A user Chameleon hasn't seen is created.
Event namenametextRequired
The event's name, such as Completed onboarding.
Event propertiespropertiesobject
Details of the event, by name, such as plan or amount.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "event": {
      "id": "example"
    }
  }
}

Update microsurvey

Publish or unpublish a microsurvey, or add or remove a tag or environment.

Inputs

Microsurveysurvey_idtextRequired
The microsurvey.
Publishpublishtext
Publish it now, so it starts showing, or unpublish it.One of: publish (Publish now), unpublish.
Add tagadd_tagtext
A tag to add.
Remove tagremove_tagtext
A tag to remove.
Add environmentadd_environmenttext
An environment to show it in.
Remove environmentremove_environmenttext
An environment to stop showing it in.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "survey": {
      "created_at": "example",
      "dashboard_url": "example",
      "id": "example",
      "name": "example",
      "position": 1,
      "published_at": "example",
      "scheduled_publish_at": "example",
      "scheduled_unpublish_at": "example",
      "segment_ids": [
        "example"
      ],
      "stats": {
        "completed_count": 1,
        "exited_count": 1,
        "last_completed_at": "example",
        "last_exited_at": "example",
        "last_started_at": "example",
        "started_count": 1
      },
      "tag_ids": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}

Update tour

Publish or unpublish a tour, or add or remove a tag or environment.

Inputs

Tourtour_idtextRequired
The tour.
Publishpublishtext
Publish it now, so it starts showing, or unpublish it.One of: publish (Publish now), unpublish.
Add tagadd_tagtext
A tag to add.
Remove tagremove_tagtext
A tag to remove.
Add environmentadd_environmenttext
An environment to show it in.
Remove environmentremove_environmenttext
An environment to stop showing it in.

Outputs

dataobject
The response from Chameleon.
Example output
{
  "data": {
    "tour": {
      "created_at": "example",
      "dashboard_url": "example",
      "id": "example",
      "name": "example",
      "position": 1,
      "published_at": "example",
      "scheduled_publish_at": "example",
      "scheduled_unpublish_at": "example",
      "segment_ids": [
        "example"
      ],
      "stats": {
        "completed_count": 1,
        "exited_count": 1,
        "last_completed_at": "example",
        "last_exited_at": "example",
        "last_started_at": "example",
        "started_count": 1
      },
      "style": "example",
      "tag_ids": [
        "example"
      ],
      "updated_at": "example"
    }
  }
}

On this page