Check customer entitlement
Check if a customer has access to a specific benefit by key. This is the primary endpoint for feature gating and licensing checks.
Related endpoints
GET /customers/{customerId}/entitlements— List customer entitlementsPOST /customers/{customerId}/entitlements— Grant entitlement to customerDELETE /customers/{customerId}/entitlements— Revoke entitlement by benefit keyDELETE /customers/{customerId}/entitlements/{entitlementId}— Revoke entitlement by IDGET /entitlements— List entitlementsGET /entitlements/check— Check entitlement access
Common errors
401 unauthenticated— missing, malformed, or revoked API key.404 resource_missing— the referenced resource does not exist or is not visible to your key.
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Path Parameters
customerId*string
Customer UUID
Format
uuidQuery Parameters
benefitKey*string
Benefit key to check
Length
1 <= lengthResponse Body
application/json
application/json
application/json
Stuck on an error response? Ask the RevKeen assistant to explain it.
curl "https://api.revkeen.com/v2/customers/00000000-0000-0000-0000-000000000000/entitlements/check?benefitKey=value" \
-H "x-api-key: $REVKEEN_API_KEY"{
"data": {
"benefit_key": "string",
"has_access": true,
"access_level": "full",
"status": "active",
"benefit": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"description": "string",
"benefit_type": "string",
"benefit_key": "string",
"category": "string",
"icon_url": "string",
"display_order": "string",
"is_active": true,
"default_value": null,
"config": null
},
"reason": "string"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}