Skip to main content
Integration with Chameleon

How set up and use Chameleon API in playbooks

Updated over 2 weeks ago

Gather the necessary information

  1. Create an API Token in Chameleon by going to this page. Make sure to keep this token a secret.

  2. Find the ID of the experience you want to trigger. Chameleon sometimes refer to this as model_id.

Set up in Coho

  1. In Coho, create a new HTTP Action.

  2. Choose the right HTTP method and URL, depending on the type of action you want to do. For example, to deliver an experience, choose POST as the method and this URL: https://api.chameleon.io/v3/edit/deliveries.

  3. In the payload, enter the appropriate properties, as described in the Chameleon API reference. You can use Coho Variables when crafting the payload, to inject users information, such as email address.
    For example, to deliver a product tour with the "Create a Delivery" API, it should look like:

    {
    "model_kind": "tour",
    "model_id": "5f3c4232c712de665632a6d5",
    "email": "{{User property - email}}",
    "options": {
    "name": "{{User property - name}}"
    }
    }
  4. Add the right headers:

    {
    "X-Account-Secret": "YOUR API TOKEN",
    "Content-Type": "application/json",
    "Accept": "application/json"
    }
  5. Test the action and save it.

Did this answer your question?