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.
https://api.frontegg.com/entitlements/
https://api.us.frontegg.com/entitlements/
https://api.ca.frontegg.com/entitlements/
https://api.au.frontegg.com/entitlements/
https://{domain}.frontegg.com/entitlements/
Enum that represents the treatment in case feature flag is off
UUID string that represents the related feature ID
String the represents the feature flag description
JSON String that represents additional custom metadata to the feature flag entity
https://api.frontegg.com/entitlements/resources/feature-flags/v1/{id}
https://api.us.frontegg.com/entitlements/resources/feature-flags/v1/{id}
https://api.ca.frontegg.com/entitlements/resources/feature-flags/v1/{id}
https://api.au.frontegg.com/entitlements/resources/feature-flags/v1/{id}
https://app-xxx.frontegg.com/entitlements/resources/feature-flags/v1/{id}
curl -i -X PATCH \
'https://api.frontegg.com/entitlements/resources/feature-flags/v1/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Test Feature Flag",
"on": true,
"offTreatment": "false",
"defaultTreatment": "true",
"featureId": "26f1b6b8-0317-452c-becd-68a5f782417d ",
"description": "This is a test feature flag",
"metadata": "{}",
"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"
}
]
}'
UUID string that represents the feature flag ID
Enum that represents the treatment in case feature flag is off
String the represents the feature flag description
JSON String that represents additional custom metadata to the feature flag entity
Array of rules that represents the set of conditions targeting the feature
{ "id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "name": "Test Feature Flag", "on": true, "offTreatment": "false", "defaultTreatment": "true", "feature": { "id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3", "key": "test-feature", "name": "Test Feature" }, "description": "This is a test feature flag", "metadata": "{}", "rules": [ { … } ], "updatedAt": "2022-01-01T00:00:00", "createdAt": "2022-01-01T00:00:00" }
https://api.frontegg.com/entitlements/resources/feature-flags/v1/{id}
https://api.us.frontegg.com/entitlements/resources/feature-flags/v1/{id}
https://api.ca.frontegg.com/entitlements/resources/feature-flags/v1/{id}
https://api.au.frontegg.com/entitlements/resources/feature-flags/v1/{id}
https://app-xxx.frontegg.com/entitlements/resources/feature-flags/v1/{id}
curl -i -X DELETE \
'https://api.frontegg.com/entitlements/resources/feature-flags/v1/{id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'