Deprecated
Record Usage (Deprecated)
Deprecated. Use POST /api/credits/consume instead.
POST
Records a usage event for a tenant. Crovver accumulates these events and checks them against the plan’s
limits when check-usage-limit is called.
Request Body
string
required
The external tenant ID
string
required
The metric to record (must match a key in
plan.limits)number
Amount to add. Defaults to
1.object
Optional context (e.g., which user triggered the event)
Authentication
Requires a secret key (Authorization: Bearer sk_live_...).