Skip to main content
POST
This endpoint is deprecated. Use POST /api/credits/consume instead — it deducts directly from the credit ledger, is idempotent via idempotencyKey, and returns the remaining balance in a single call.
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_...).