Skip to main content
POST
/
api
/
public
/
check-usage-limit
curl -X POST "https://api.crovver.com/api/public/check-usage-limit" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "requestingEntityId": "workspace_123",
    "metricKey": "api_calls"
  }'
{
  "success": true,
  "data": {
    "withinLimit": true,
    "current": 4821,
    "limit": 10000,
    "percentUsed": 48.21,
    "metricKey": "api_calls"
  }
}
Returns the tenant’s current usage for a metric and whether they’re within the limit defined by their plan.

Request Body

requestingEntityId
string
required
The external tenant ID
metricKey
string
required
The metric to check (e.g., api_calls, storage_gb)

Authentication

Requires a secret key (Authorization: Bearer sk_live_...) or public key (x-public-key).
curl -X POST "https://api.crovver.com/api/public/check-usage-limit" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "requestingEntityId": "workspace_123",
    "metricKey": "api_calls"
  }'
{
  "success": true,
  "data": {
    "withinLimit": true,
    "current": 4821,
    "limit": 10000,
    "percentUsed": 48.21,
    "metricKey": "api_calls"
  }
}