Entitlements
Get subject entitlement value
This endpoint should be used for access checks and enforcement. All entitlement types share the hasAccess property in their value response, but multiple other properties are returned based on the entitlement type.
For convenience reasons, /value works with both entitlementId and featureKey.
⚠️ Deprecated: Use GET /api/v2/customers/{customerIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/value instead.
get/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/value
Request
- Base URLhttps://openmeter.cloud (the document declares no server; this is the origin it was published from)
- Auth
- HTTP bearer
- or API key in cookie __session
Path parameters
subjectIdOrKeystring required
entitlementIdOrFeatureKeystring required
Query parameters
timestring date-time
Example:2023-01-01T01:01:01.001Z
Response
The request has succeeded.
Example response
{
"balance": 100,
"config": "{ key: \"value\" }",
"hasAccess": true,
"totalAvailableGrantAmount": 100,
"usage": 50
}Changes
No recorded changes to this operation across all 2 revisions of this API.