OpenMeter Entitlements
Get customer entitlement value
Changed onGet the customer's access through a single entitlement, optionally evaluated at a point in time.
get/openmeter/customers/{customerId}/entitlements/{entitlementId}/value
Request
- Base URL: http://localhost:8888/api/v3
- URL: http://localhost:8888/api/v3/openmeter/customers/{customerId}/entitlements/{entitlementId}/value
- Auth: none declared
Path parameters
customerIdstring required
ULID (Universally Unique Lexicographically Sortable Identifier).
Example:01G65Z755AFWAKHE12NY0CQ9FH
entitlementIdstring required
ULID (Universally Unique Lexicographically Sortable Identifier).
Example:01G65Z755AFWAKHE12NY0CQ9FH
Query parameters
expandBilling Entitlement Access Expand[]
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.
Example response
{
"feature_key": "resource_key",
"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
- ○
endpoint added
- ○