Events
Trigger Event
Trigger an event for a subscriber
POST
Trigger Event
Trigger an event for a subscriber. Creates the subscriber and/or event definition if they don’t exist. Events can trigger automations and apply sync rules.
New subscribers created by this endpoint follow your workspace default lists
setting.
Using
If this event starts a sequence with
Request Body
Subscriber delivery email address. Required when creating a new subscriber.
Your app/customer/user ID for this subscriber. You can trigger events with
only
externalId when the subscriber already exists.Event name (e.g.,
purchase_completed, saas.purchase)Event properties/metadata. Can contain any key-value data.
Custom attributes to set on the subscriber.
Auto-Creation Behavior
This endpoint automatically creates resources if they don’t exist:| Resource | Behavior |
|---|---|
| Subscriber | Created if email doesn’t exist - active status, or pending confirmation when double opt-in is enabled |
| Event Definition | Created if event name is new |
What Happens When an Event is Triggered
- Event Recorded - Stored in analytics for reporting
- Sync Rules Applied - Tags automatically added/removed based on rules
- Automations Triggered - Sequences with matching event triggers start
Using properties in Sequence Emails
If this event starts a sequence with trigger: "event_received", Sequenzy stores the properties object on that sequence run and makes it available in later emails through event. merge tags.
Examples:
{{event.amount}}{{event.product}}{{event.order.id}}{{event.city|your area}}
Built-in Events
These events have special behavior with default sync rules:| Event | Tags Added | Tags Removed |
|---|---|---|
saas.purchase | customer | lead, past-due, cancelled, churned |
saas.churn | churned | customer, cancelled, past-due |
saas.cancelled | cancelled | customer |
saas.payment_failed | past-due | — |
saas.trial_started | trial | lead |
Double Opt-In
When the workspace has double opt-in enabled and the event creates a brand-new subscriber, the subscriber is stored pending confirmation, the confirmation email is queued, and sequences triggered by the event wait at their trigger step until the subscriber confirms. The response then includes anoptIn object.
Responses
Response Fields
| Field | Description |
|---|---|
subscriber.created | true if subscriber was created by this request |
event.definitionCreated | true if this event type was newly defined |
Use Cases
E-commerce Purchase
Feature Activation
Subscription Lifecycle
Events can trigger automation sequences. If you have a sequence set to start
when this event is received, it will begin automatically for the subscriber.
Trigger Event