Skip to main content
Can reads Engine /api/v1/can; CanWithMetadata also sends JSON metadata for the cost and margin estimate. For credit-backed features, CheckUsage provides an advisory projection and TrackUsage enforces and records the deduction atomically.

Metadata

Metadata can include quantities required by a Cost Rule. It is input to the cost and margin estimate only. It does not filter usage: Used, Limit and Remaining always cover all of the feature’s usage, whatever model or other properties you send.

CanResult

Check immediately before protected server work. React gates are not an authorization boundary. Can does not reserve product credits.