Welcome to our newly overhauled Zephyr pages! See our new Overview, Examples, and Index.
Feedback is welcome at bottom of each page.

Initiate an Event API call directly from Zephyr. Commonly used within triggers.

{api_event({'id':<emailAddress>, 'event':'<eventName>'})}

Pass any valid object according to the Event API POST-method documentation.


Use Case: Based on a certain transactional send, you can trigger the event API to take users down a custom message stream.


In the Trigger:
Event: On Send
Time: 0 minutes
Action: Custom Zephyr:

{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'})}