Key-gated challenges require a member to “spend a key” before starting. It’s a simple access-control primitive that unlocks premium, member-only, or VIP-tier 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.
How it works
Each challenge has anunlockPrice field — the number of keys a member must spend to open it. Zero = open to anyone. Non-zero = requires keys.
When a member opens a gated challenge:
- Nudj checks the member’s key balance.
- If sufficient, the member is prompted to spend X keys.
- On confirmation,
unlockPricekeys are deducted, and the challenge opens. - Once unlocked, the member retains access — no re-paying unless the admin resets it.
Configuring the unlock
In the challenge editor:Decide where keys come from
Keys are a Nudj currency — members earn them from specific challenges, rewards, or admin gifts. You decide the supply.
Key economy design
Balancing keys is an economy decision:API
Programmatic unlocks viaPOST /challenges/{id}/unlock — useful for integrations where keys are earned through external events (e.g. Shopify purchases).
See Admin API reference.
When to use gating
VIP content
VIP content
Gate high-value challenges behind keys so members earn the right to play.
Progression ladders
Progression ladders
Pair with achievements as actions to build layered progressions.
Anti-spam
Anti-spam
Gate expensive-to-process challenges (large file uploads, AI moderation) behind small unlock prices to reduce spam.

