Retrieve a paginated list of plans for a specific account (tenant) with filtering, search, and sorting capabilities. Search by name, sort by name or creation date, and optionally exclude non-entitled plans.
Entitlements Overview
The Entitlements Engine is powered by the isEntitledTo query and is designed to manage and control user access within your application. It enables you to grant users specific roles, permissions, feature access, and more, providing a flexible framework for access management.
Below is an overview of API endpoints relevant to managing features, plans, feature flags, and API access control within your application. All endpoints are classified as Management Endpoints, requiring environment-level authorization and offering comprehensive control over entitlement resources.
- EU Regionhttps://api.frontegg.com/entitlements/resources/plans/v1/tenant/{tenantId}
- US Regionhttps://api.us.frontegg.com/entitlements/resources/plans/v1/tenant/{tenantId}
- CA Regionhttps://api.ca.frontegg.com/entitlements/resources/plans/v1/tenant/{tenantId}
- AU Regionhttps://api.au.frontegg.com/entitlements/resources/plans/v1/tenant/{tenantId}
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/entitlements/resources/plans/v1/tenant/{tenantId}
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X GET \
'https://api.frontegg.com/entitlements/resources/plans/v1/tenant/{tenantId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "items": [ { … } ], "hasNext": true }
Field to order results by create date (createdAt) or expiration date (expirationDate)
Sort type, ASC for ascending, DESC for descending
Comma separated feature IDs to filter results by
Comma separated user IDs to filter results by
- EU Regionhttps://api.frontegg.com/entitlements/resources/plans/v1
- US Regionhttps://api.us.frontegg.com/entitlements/resources/plans/v1
- CA Regionhttps://api.ca.frontegg.com/entitlements/resources/plans/v1
- AU Regionhttps://api.au.frontegg.com/entitlements/resources/plans/v1
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/entitlements/resources/plans/v1
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X GET \
https://api.frontegg.com/entitlements/resources/plans/v1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'{ "items": [ { … } ], "hasNext": true }
Array of rules that represents the set of conditions targeting the plan
Number that represents the default time limitation in days for auto-assigned plans
Boolean indicating whether a plan is assigned automatically upon signup
- EU Regionhttps://api.frontegg.com/entitlements/resources/plans/v1
- US Regionhttps://api.us.frontegg.com/entitlements/resources/plans/v1
- CA Regionhttps://api.ca.frontegg.com/entitlements/resources/plans/v1
- AU Regionhttps://api.au.frontegg.com/entitlements/resources/plans/v1
- Frontegg sub-domain for use with user tokenshttps://app-xxx.frontegg.com/entitlements/resources/plans/v1
- cURL
- JavaScript
- Python
- GO
- Payload
curl -i -X POST \
https://api.frontegg.com/entitlements/resources/plans/v1 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Test Plan",
"defaultTreatment": "true",
"rules": [
{
"description": "This is the first rule",
"conditionLogic": "and",
"conditions": [
{
"attribute": "myCustomAttribute",
"attributeType": "custom",
"negate": false,
"op": "in_list",
"value": {
"list": [
"valueA",
"valueB"
]
}
}
],
"treatment": "true"
}
],
"description": "This is a test plan",
"metadata": "{ \"some-key\": \"some-value\" }",
"defaultTimeLimitation": "30",
"assignOnSignup": "true",
"featureKeys": "[\"my-cool-feature\"]"
}'UUID string that represents the plan ID
UUID string that represents the vendor ID
Array of rules that represents the set of conditions targeting the plan
Number that represents the default time limitation in days for auto-assigned plans
Boolean indicating whether a plan is assigned automatically upon signup
{ "id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "vendorId": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "name": "Test Plan", "defaultTreatment": "true", "rules": [ { … } ], "description": "This is a test plan", "metadata": "{ \"some-key\": \"some-value\" }", "defaultTimeLimitation": "30", "assignOnSignup": "true", "createdAt": "2022-01-01T00:00:00", "updatedAt": "2022-01-01T00:00:00", "features": { "id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "name": "Test Feature", "key": "test-feature", "permissions": [ … ] }, "entitlements": { "id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "planId": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "tenantId": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "userId": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "expirationDate": "2022-01-01T12:00:00", "createdAt": "2022-01-01T12:00:00", "updatedAt": "2022-01-01T12:00:00", "plan": { … } } }