Skip to main content
Entitlements are how Crovver decides whether a customer can use a feature. Crovver finds the customer’s live subscription and checks whether its plan grants the feature.

How It Works

When you call canAccess:
  1. Crovver looks up the customer’s live subscription. Pass productSlug if you sell more than one product.
  2. It checks whether that subscription’s plan grants the feature.
  3. If the key is also a meter with an allowance on the plan, the customer must have credits left too.
  4. It returns canAccess: true or false.
Archiving a plan never removes access from its existing subscribers.
Feature keys created in the dashboard use hyphens, such as data-export. Pass the key exactly as it appears under Product catalog → Catalog → Features.

Checking Access — Frontend

Use the useFeatureAccess hook:

Checking Access — API

A frontend check only hides UI. Repeat the check on your backend before doing the protected work, with canAccess from the Node or PHP SDK and your secret key.

Blocking UI with FeatureGuard

The <FeatureGuard> component handles the gate declaratively:

Metered / Credit-Based Limits

Entitlements handle boolean feature access. For consumable resources, such as API calls, AI tokens or SMS messages, use credits instead:
  1. Check balance before the action — GET /api/public/credits/balance
  2. Consume credits after the action — POST /api/public/credits/consume (idempotent)
See Credits for the full model.