Documentation

Subscriptions & levels

Subscriptions are named tiers backed by a numeric level. Everything gated in LumenAuth — variables, downloads — is gated by that level.

Create tiers under Subscriptions in the dashboard, e.g. Basic (level 1), Premium (level 2), Lifetime (level 5). Each name maps to exactly one level, so a level always resolves to a single tier.

How the level flows

  • When you generate a license you pick a subscription; the license carries its level.
  • On redemption the user inherits that level (visible in Users, returned as user.level from the client API).
  • A server variable or a gated file has a requiredLevel; the user only gets it when user.level ≥ requiredLevel — otherwise 403.

This one number is the whole access model: sell higher tiers by issuing higher-level keys, and gate premium content behind a higher requiredLevel. No per-feature flags to manage.