Skip to main content

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

  1. Navigate to Settings > Entitlements
  2. Click Create Configuration
  3. Fill in:
    • Key (unique identifier)
    • Display name
    • Type (boolean, quantity, tier)
    • Default value
  4. 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

Response:

All Active Entitlements

Response:

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

EventDescription
entitlement.grantedEntitlement assigned
entitlement.revokedEntitlement removed
entitlement.usage_warningApproaching limit
entitlement.limit_exceededLimit exceeded
entitlement.resetUsage 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.

Next Steps

Feature Access

Control feature flags.

Templates

Create entitlement templates.