This endpoint is deprecated and usage sent to it is never counted: it writes to a log that nothing reads, so it neither reduces a customer’s allowance nor blocks them. Use POST /api/public/credits/consume instead. It deducts from the customer’s credits, is idempotent through idempotencyKey, and returns the remaining balance in one call.
Records a usage event for a tenant. Kept only so older integrations don’t fail.
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_...).