- Check reads the current usage and returns a gate decision. It never modifies state.
- Ingest records a consumption event and increments the usage counter. It never gates.
isGranted → ingest (only if allowed).
Governance is opt-in. If an entity has no assignment for the requested capability, Check returns
isGranted: true with an empty chains array. There is no default deny.Check
GET /api/v1-beta/customers/:id/entitlements/check
Returns whether the requested amount of a feature or credit is permitted, along with current usage and the applicable limit. Call this before allowing consumption.
By feature
Pass the feature ID and dimensions that identify the governed entities. The governance engine resolves the entity hierarchy from the dimensions automatically.By credit
UsecurrencyId instead of featureId to check against a credit balance limit.
Pass either
featureId or currencyId, not both.Check request fields
Check response
200 OK:
Finding the binding constraint
Ingest
Records consumption and increments the usage counter. Ingest never gates — call Check first if you need a permit decision before consuming. UsereportUsage for synchronous, real-time enforcement — credit-backed features return an updated balance in the response immediately. Use reportEvent for high-volume, eventually-consistent metering (≈10 s latency) where a real-time balance is not required.
reportUsage
reportEvent
Batching usage reports
BothreportUsage and reportEvent accept up to 100 records per request.
