api_event
Initiate an Event API call directly from Zephyr. Commonly used within triggers.
Copy
{api_event({'id':<emailAddress>, 'event':'<eventName>'})}
Pass any valid object according to the Event API POST-method documentation.
Examples
Use Case: Based on a certain transactional send, you can trigger the event API to take users down a custom message stream.
Zephyr:
In the Trigger:
Event: On Send
Time: 0 minutes
Action: Custom Zephyr:
Copy
{if profile.vars.gender == "M"}
{api_event({'id':email, 'event':'mens-followup'})}
{else if profile.vars.gender == "F"}
{api_event({'id':email, 'event':'womens-followup'})}
{/if}