Get customer entitlement value
Changed onPre-release Endpoint This endpoint is currently in beta and is subject to change.
Get the customer's access through a single entitlement, optionally evaluated at a point in time.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ULID (Universally Unique Lexicographically Sortable Identifier).
ULID (Universally Unique Lexicographically Sortable Identifier).
Query parameters
Expand computed fields.
Supported values are:
- value: Expand the balance details of a metered entitlement; it sets the value field.
The point in time to evaluate the entitlement at. Defaults to the current time.
Response
EntitlementValueResult response.
Entitlement value result.
The type of the entitlement.
The feature key being evaluated.
Whether the customer has access to the feature. Always true for boolean and static entitlements. Depends on balance for metered entitlements.
Only available for static entitlements. Config is the JSON parsable configuration of the entitlement. Useful to describe per customer configuration.
Only available for metered entitlements. The balance details of the entitlement at the evaluation time. Requires the value expand.
Example response
{
"type": "static",
"feature_key": "available_models",
"has_access": true,
"config": "{ \"availableModels\": [\"gpt-5\", \"gpt-4o\"] }",
"value": {
"balance": "100",
"usage": "50",
"overage": "0",
"total_available_grant_amount": "100",
"grant_balances": {
"additional_property": "1"
}
}
}Changes
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking