Creating activities
Activities represent user actions that you want to track and reward. Before recording activities, you need to define the behaviours you want to track.
Step 1: Create a behaviour
First, define what actions you want to track by creating a behaviour:
Bash
Sample response:
JSON
Step 2: Record an activity
Now you can track when users perform this behaviour:
Bash
Sample response:
JSON
Key fields explained
For behaviors:
name: Human-readable name for the behaviorverb: Unique identifier for the action (e.g., "share", "login", "purchase")coolOff: Minimum seconds between activities (prevents spam)
For activities:
uuid: Links to the user who performed the actionattrs.verb: Must match a behaviour you've createdattrs.type: Set to "behaviour" for basic tracking
Success!
You've now created a complete engagement flow: users → behaviours → activities → rewards. The Mambo platform will automatically apply any rules you've configured to award points, badges, or other incentives when activities are recorded.
Next steps
Explore the full API documentation to learn about advanced features like custom rewards, achievements, and analytics.