{response_id, type, data} envelope. To create a new business event, use the Business Events (Legacy) API — that operation has not moved to V5 yet.
Endpoints
The Business Events API (V5) is a collection of the following endpoints:- Trigger Business Event (V5): Fire a registered business event to enqueue its attached campaigns and flows.
- List Business Events: List all business events in the workspace, or look up a single one by name or ID. Returns campaign and trigger counts, and supports cursor-based pagination.
- Search Business Events (V5): List all business events, or look up several at once by names or IDs. Returns the same fields as List Business Events and supports cursor-based pagination.
Authentication
Authentication is done via Basic Auth. This requires a Base64-encoded string of your credentials in the formatusername:password.
- Username: Use your MoEngage Workspace ID (also known as the App ID). Find it in the MoEngage dashboard at Settings > Account > API keys.
- Password: Use an API key from Settings > Account > API keys.
FAQs
Trigger Business Events
Do I need to pass all event attributes when triggering?
Do I need to pass all event attributes when triggering?
What happens if I trigger an event that doesn't exist?
What happens if I trigger an event that doesn't exist?
event_name matches an event already created via the Create Business Event API before triggering it.What does triggered_status mean?
What does triggered_status mean?
triggered_status summarizes the outcome of the trigger: SUCCESS (every attached campaign or flow was reserved), PARTIAL_SUCCESS (at least one reserved, at least one skipped by quota), or FAILURE (nothing reserved — either all were skipped by quota, or the event has no active campaigns or flows attached).How do I know which campaigns or flows were actually triggered?
How do I know which campaigns or flows were actually triggered?
triggered_campaign_ids and triggered_flow_ids in the response data object — these list the IDs that were reserved for this firing. failed_campaign_ids and failed_flow_ids list anything skipped due to quota.How do I verify a campaign received the trigger on the dashboard?
How do I verify a campaign received the trigger on the dashboard?
Look Up Business Events
When should I use List Business Events instead of Search Business Events (V5)?
When should I use List Business Events instead of Search Business Events (V5)?
name or id passed as query parameters. Use Search Business Events (V5) to look up several events at once, since filters.names and filters.ids accept arrays. Both return the same fields and list everything when you supply no filter.Can I combine names and ids in one search?
Can I combine names and ids in one search?
filters.names or filters.ids, not both. Supplying both returns a 400 error. The same rule applies to the name and id query parameters on List Business Events.How do I page through results?
How do I page through results?
pagination.has_more is true, pass pagination.next_cursor back as cursor to fetch the next page. Treat the cursor as opaque — do not decode or modify it.Why do the V5 attribute data types differ from the legacy ones?
Why do the V5 attribute data types differ from the legacy ones?
string, number, boolean, or datetime. The legacy Create Business Event API accepts string, int, float, array, and date. Map between the two when you move an integration to V5.What is the difference between campaign_count and trigger_count?
What is the difference between campaign_count and trigger_count?
trigger_count is the total number of times the event has been triggered. campaign_count is the cumulative number of child campaigns those triggers have launched across all firings.