Entitlements
Entitlements define what features, resources, or capabilities customers have access to based on their subscription. Use entitlements to control feature access, usage limits, and permission levels across your application.What Are Entitlements?
Entitlements are access rights granted to customers through their subscription:- Feature flags - Enable/disable features
- Usage limits - Set quotas (API calls, storage, users)
- Permission levels - Define access tiers
- Time-based access - Temporary or trial features
Key Concepts
Entitlement Configuration
Defines an entitlement type available in your system:Entitlement Grant
A specific entitlement assigned to a subscription:Entitlement Template
Predefined sets of entitlements for plans:Entitlement Types
Boolean (Feature Flag)
Enable or disable a feature:Quantity (Usage Limit)
Set numeric limits:Tier (Access Level)
Define access levels:Unlimited
No restrictions:Creating Entitlement Configurations
From the Dashboard
- Navigate to Settings > Entitlements
- Click Create Configuration
- Fill in:
- Key (unique identifier)
- Display name
- Type (boolean, quantity, tier)
- Default value
- Click Save
Via API
Granting Entitlements
On Subscription
Add entitlements when creating a subscription:From Template
Apply a predefined template:Individual Grant
Add a single entitlement:Checking Entitlements
Single Entitlement
All Active Entitlements
Usage Tracking
Report Usage
Track consumption against entitlements:Get Usage Summary
Entitlement Templates
Creating Templates
Linking to Plans
Associate templates with plans:Overages
When usage exceeds entitlement limits:Block Access
Allow Overages (with billing)
Soft Limit (warning only)
Time-Based Entitlements
Trial Period
Grant temporary access:Promotional Access
Transition Policies
Define what happens when subscriptions change:On Upgrade
On Downgrade
Webhooks
| Event | Description |
|---|---|
entitlement.granted | Entitlement assigned |
entitlement.revoked | Entitlement removed |
entitlement.usage_warning | Approaching limit |
entitlement.limit_exceeded | Limit exceeded |
entitlement.reset | Usage counter reset |
Example Webhook
Integration with Your App
Check Access in Your Code
Best Practices
Use Templates
Create templates for consistent plan entitlements.
Set Warning Thresholds
Alert customers before they hit limits.
Plan for Overages
Decide upfront how to handle limit exceeds.
Cache Entitlements
Cache entitlement checks for performance.