Feature Gating for Software Applications

Design a feature gate that checks access on the server and gives users a clear path when a feature is unavailable.

Choose the boundary to protect

Feature gating controls who can use an application capability. Start with a concrete operation and list all ways to reach it. If CSV export is initiated by a button and by an API request, both should reach the same authorization boundary. Hiding the button alone leaves the underlying operation reachable.

Evaluate resource access and commercial access

Authenticate the caller and check that they have access to the resource. Resolve the workspace or subscription from trusted server state, then check whether that account can perform the action. A paid plan can grant export access, while a workspace role can still determine who may export a particular dataset.

Use a stable action identifier in the policy and in the server handler. Avoid using display text such as Export to CSV as the policy key because copy and localization can change independently of the operation.

Design the denied and unavailable states

A user without the required plan can see an upgrade option. A user who is out of quota needs the reset time or a way to increase capacity. If entitlement state is temporarily unavailable, keep execution gated and offer a retry. Use the browser UI for feedback and keep the final decision on the server.

Verify the gate from each entry point

Test an allowed user, a denied user, a user from a different workspace, and an entitlement service outage. Call the protected endpoint directly as well as from the page. The hosted PaywallOS quick start walks through mapping a feature to a tier and checking that mapping before running the operation.

PaywallOS Sandbox

The OpenVerb JSON library defines what actions exist in the app.

Analytics
dashboard.view
Access to the main analytics dashboard and basic metrics.
data.export
Export reports and raw data to CSV or PDF formats.
data.streaming
Access to real-time websocket data and live feed updates.
AI
ai.insights
Generate automated summaries and trend detection from datasets.
ai.forecast
Access to predictive modeling and future trend forecasting.
Collaborate
team.collaboration
Shared workspaces, comments, and team-based tagging.
Developer
api.custom_keys
Generate and manage programmatic API keys for data integration.
Service
support.priority
Priority ticket handling and 24/7 technical support access.
8 verbs loaded from openverb.core.json

Subscription tiers determine pricing. Each tier unlocks specific verbs.

Free
Free
dashboard.view
1 verb included
Pro
$29/mo
dashboard.view
data.export
ai.insights
3 verbs included
Business
$99/mo
dashboard.view
data.export
data.streaming
ai.insights
ai.forecast
team.collaboration
api.custom_keys
support.priority
8 verbs included

The access control matrix. Which verbs are allowed on which tiers.

VerbFreeProBusiness
dashboard.view
∞
∞
∞
data.export
50/monthly
∞
data.streaming
∞
ai.insights
20/monthly
∞
ai.forecast
∞
team.collaboration
∞
api.custom_keys
∞
support.priority
∞
Active User
Try an Action