An API Call Trigger allows you to engage a user in real time when an API call is triggered. This trigger can be useful, for example, if you want to use Blendee to create experiences linked to transactional emails (e.g.: Order confirmation, shipment, etc…).
Let’s take a look at the steps required to configure the trigger
To configure this filter, click on Journey -> Trigger -> Real Time, click on New Trigger and in step 3 of the configuration, after setting the configuration in the previous steps, select the “API Call” trigger. To learn how to set up all configurations, read the article “Configure a trigger“.

Select “Next” and Save.
The API Call Trigger provides specific contextual fields that can be invoked during the creation of flows within the experience. The available data are:
- Order number
- Name of the first product purchased within the order
- Total Order Import
- Date of receipt of the order
- Number of products ordered
- Dynamic Html: allows you to pass to Blendee the HTML code to be used to build the customization (e.g. html template of an email)
- List of purchased products in the order
Below is an example of how to insert Dynamic Html into the Blendee email editor.
Create a new Experience within the Campaign Manager from the API trigger you created
Insert an email block into the experience flow, connect it to the starting trigger, and access the email content configuration.
Insert an HTML block inside the email editor in the place where we want to show the content of the Dynamic Html and insert the merge tag {{dynamicFields.dynamicHtml}}
When submitting, the merge tag will be replaced with the content sent via the APIs.
IMPORTANT
Make sure that your HTML and CSS code are correct and meet the requirements for the layout of your email messages. Your code can affect the entire display of the email message.
Thanks for contributing!