Check Entitlement
Entitlements
Check Entitlement
GET
Check Entitlement
Check whether a customer is entitled to use a feature under their current plan. This is the primary gating endpoint — call it before executing any metered or limited operation.
Auth:
pk_ or sk_
External customer ID
Feature key to check (matches a billable metric code)
Whether the customer can use this feature
Why the request was allowed or denied (e.g.
within_limit, limit_exceeded, no_subscription)Units consumed in the current billing period
Maximum units allowed by the plan
Units still available
Your cost per unit (from cost models)
What you charge per unit
Profit per unit
Minimum margin threshold configured for this feature, if any
When
allowed is false, the reason field tells you why — use it to show contextual upgrade prompts in your UI.