We have created a Post collection for you to test interactions created in Interaction Designer. Use the link below and import our collection.
https://www.getpostman.com/collections/614176d91470bbb6fe45
We have added a couple of variables to the collection that you need to add to your environment variables.
Setting up our first interaction
The example we have added is for a button click on a website. Best way to test an interaction yourself is to first create an interaction via Interaction Designer.
- Create a new Interaction
- Choose your website and give it a name
- Use Tag Type ‘Button’
- Add a variable ‘url’
- Add a variable ‘buttonname’
- Click ‘Save and enable’
Next navigate to ‘GTM / Website integration’ to view the tagID and variables. The body for the POST should look something like the output below. Don’t forget to copy the TagID into your environment variables.
Your Postman request example
{
"data": {
"interaction": {
"tagId": "{{TAGID}}",
"subscriberKey": "{{SUBKEY}}"
},
"variables": {
"url": "https://test.com",
"buttonname": "red button"
},
"types": {
"url": "ValueText",
"buttonname": "ValueText"
}
}
}
The endpoint that should be used for the call should look something like the endpoint below.
https://{{SUBDOMAIN}}.activation-studio.com/public/api/interactions