Custom events
Define custom events to trigger Journeys based on user behavior.
Custom events are currently in beta.
To request access, contact support@onesignal.com
with:
- Your company name
- Your OneSignal Organization ID
- The App ID(s) you want to enable
Overview
Custom events let you trigger Journeys based on real user behavior. This allows you to send timely, relevant messages in response to key user actions in your app or website.
Example use cases
- A user signs up for your app → Start an onboarding Journey
- A user enters checkout but doesn’t complete it → Re-engage with a reminder or offer
- A gamer reaches a new level → Send an in-app reward or upsell
- A user tries to cancel their account → Start a winback Journey
Create custom events
Use the API to define the custom events you want to track.
Create Custom Events
Create a custom event via our API endpoint.
Example: Send a custom event via API
Use the Create Custom Events API to send a custom event tied to a specific user.
The identifier or name of the event. Maximum 128 characters.
The external ID of the user targeted for the event. Either the user’s External ID or OneSignal ID is required.
Optional parameters about the event (e.g., plan name, product ID, price).
This event will immediately add the user with external_id user_12345
to a Journey with completed_onboarding
as the custom event entry-rule trigger or wait until action.
Trigger Journeys with events
Event-triggered Journeys let you immediately message users based on real-time activity—no need to wait for segment updates. You can start a Journey the moment a user takes a key action.
What you can wait for
Use the Wait Until Action feature in Journeys to hold users until they meet a condition such as:
- Being added to a segment
- Triggering a custom event (e.g., completed onboarding, made a purchase)
This makes your Journeys smarter and more responsive to real behavior—not just elapsed time.
Why use it
Here are a few examples of how you can use Wait Until:
- Onboarding: Wait until a user completes setup before showing advanced tips
- Promotions: Wait until a user adds a product to cart before sending a discount
- (Coming Soon): Only continue for users who clicked a prior message
You can also define an expiration window. If the user doesn’t meet the condition in time, you can continue down a fallback path, send an alternate message, or exit the Journey.
Event-triggered Journeys
Trigger Journeys using custom events.
Wait Until Action
Let a user sitting in a Journey “wait until” node continue.
Supported integrations
You can send custom events to OneSignal using the API or via the following integrations: