Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nudj.cx/llms.txt

Use this file to discover all available pages before exploring further.

Event Catalog Overview

This catalog provides detailed information about each webhook event, including exact trigger conditions, related events, and practical use cases.

Challenge Events

challenge-started

When it fires: The moment a user clicks “Start Challenge” and the system creates a challenge participation record.Frequency: Once per user per challenge attemptIdempotency: Starting the same challenge again creates a new event

challenge-completion

When it fires: When all required actions in a challenge are marked as complete.Frequency: Once per successful challenge completionIdempotency: Completing an already-completed challenge does not fire again

Reward Events

reward-distribution

When it fires: When the system grants rewards to a user (points, XP, items).Frequency: Can fire multiple times per trigger eventNote: This is the most data-rich webhook event

reward-claim

When it fires: When a user claims an available reward from their rewards list.Frequency: Once per reward claim actionDifferent from: reward-distribution (automatic) vs reward-claim (user action)

reward-redemption

When it fires: When a user redeems/uses a previously claimed reward.Frequency: Once per redemptionLifecycle: Distribution → Claim → Redemption

Commerce Events

shop-purchase

When it fires: When a user spends points to purchase items from the shop.Frequency: Once per purchase transactionContains: Purchase details, points spent, items received

Achievement Events

achievement-completion

When it fires: When a user meets all criteria for an achievement.Frequency: Once per achievement per userTypes: Can be one-time or recurring (daily, weekly, monthly)

Social Events

post-like

When it fires: When a user likes a community post.Frequency: Once per like actionReversible: Unliking does not fire an “unlike” event

post-comment

When it fires: When a user comments on a post.Frequency: Once per commentContains: Post ID and comment ID

Gamification Events

streak-extended

When it fires: When a user maintains their activity streak.Frequency: Once per day when streak conditions metReset: Streak resets if user misses a day

User Events

auth.email

When it fires: When a new user account is created via email authentication.Frequency: Once per user creationContains: Basic user information

organisation.invite-admin-user

When it fires: When an admin user is invited to an organization.Frequency: Once per invitationScope: Organization-level administrative event

Event Chains

Common event sequences you’ll encounter:

Challenge → Reward Flow

1. challenge-started
2. challenge-completion
3. reward-distribution
4. achievement-completion (if applicable)
5. streak-extended (if maintains streak)

Shop Purchase Flow

1. shop-purchase
2. reward-distribution (item granted)
3. achievement-completion (shopping achievement)

Social Engagement Flow

1. post-like or post-comment
2. achievement-completion (engagement achievement)
3. reward-distribution (if rewards configured)