Query
Parameters
Query parameters for fetching entitlements
Return Type
Returns an array ofEntitlementWithSummary objects containing:
| Field | Type | Description |
|---|---|---|
feature | EntitlementFeature | Feature details |
isGranted | Boolean | Whether access is granted |
hasUnlimitedUsage | Boolean | Unlimited usage flag |
usageLimit | Float | Maximum allowed usage |
currentUsage | Float | Current consumption |
resetPeriod | EntitlementResetPeriod | When usage resets |
hasSoftLimit | Boolean | Soft vs hard limit |
enumValues | [String] | Values for enum features |
summaries | [EntitlementSummary] | Breakdown by source |
Common Use Cases
Initialize app permissions
Initialize app permissions
Fetch all entitlements on app load to configure feature flags.
Display feature access
Display feature access
Show customers what features they have access to.
Usage dashboard
Usage dashboard
Build usage dashboards showing all metered features.
Example: Initialize Feature Flags
Related Operations
- Get Entitlement - Get specific entitlement
- Entitlements State - With access state
