Skip to main content
POST
This endpoint is deprecated. It checks the legacy usage_events table, which is no longer the source of truth for metered billing. Use GET /api/public/credits/balance to read remaining credits and POST /api/credits/consume to deduct them.
Returns the tenant’s current usage for a metric and whether they’re within the limit defined by their plan.

Request Body

string
required
The external tenant ID
string
required
The metric to check (e.g., api_calls, storage_gb)
string
Scope the check to a specific product’s subscription. Required for multi-product orgs.

Authentication

Requires a secret key (Authorization: Bearer sk_live_...) or public key (x-public-key).