Skip to main content

Events and payload

The webhook payload contains a data model specific to the event type. The table below provides information about each data model you can expect, as well as when a particular event would be triggered.

Most events use existing data models as described in the data dictionary. Rather than duplicating documentation, each event type links to the relevant data model in the data dictionary.

info

The webhooks payload only contains the top level and nested shared data models. Nested top level data models are not returned to maintain performance. For example, the Activity will not contain the full Point, Behaviour, Reward or Tag objects. The IDs of the nested top level data models can be used to retrieve the data from the APIs where required.

EventDescriptionData model
PingTriggered whenever a new webhook is created and used to check whether your endpoint is correctly receiving requests from Mambo. Can also be triggered manually from the list of webhooks.{"message":"ping"}
ActivityCreatedTriggered when an activity is created.Activity
ActivityBehavioursAddedTriggered when the behaviours associated to an activity have been processed and their respective statuses added to the activity.Activity
ActivityAwardedAddedTriggered when any reward or KPI associated to an activity is processed and added to the activity. There may be rewards which unlock other rewards or KPIs, meaning you may receive multiple webhook requests sent to your endpoint.Activity
ActivityExpiredPointsDebitedTriggered when points in an activity are expired.Activity
ActivityRejectedTriggered when an activity is rejected.Activity
NotificationCreatedTriggered when a new notification is created.Notification
NotificationReadTriggered when an existing notification is marked as read. Note that this event is only fired when individual notifications are marked as read. The event will not be fired when notifications are marked as read in bulk, for example, when you clear all a user's notifications.Notification
PointCreatedTriggered when a new point is created.Point
PointUpdatedTriggered when an existing point is updated.Point
BehaviourCreatedTriggered when a new behaviour is created.Behaviour
BehaviourUpdatedTriggered when an existing behaviour is updated.Behaviour
RewardCreatedTriggered when a new reward is created.Reward
RewardUpdatedTriggered when an existing reward is updated.Reward
KPICreatedTriggered when a new KPI is created.KPI
KPIUpdatedTriggered when an existing KPI is updated.KPI
LeaderboardCreatedTriggered when a new leaderboard is created.Leaderboard
LeaderboardUpdatedTriggered when an existing leaderboard is updated.Leaderboard
LeaderboardRankingUpdatedTriggered when a leaderboard is ranked.Leaderboard
CouponCreatedTriggered when a new coupon is created.Coupon
CouponUpdatedTriggered when an existing coupon is updated.Coupon
CouponStateAddedTriggered when a coupon is awarded to a user.Coupon State
TagCreatedTriggered when a new tag is created.Tag
TagUpdatedTriggered when an existing tag is updated.Tag
UserCreatedTriggered when a new user is created.User
UserUpdatedTriggered when an existing user is updated.User
UserMemberJoinedTriggered when a user isMember property is set to true and the user joins the gamification strategy.User
UserMemberLeftTriggered when a user isMember property is set to false and the user leaves the gamification strategy.User