Skip to content

Plans & Quotas

Plan tiers

Plan Calls / day Req / min Default scope Use case
free 100 10 read Evaluation, hobby projects
professional 10,000 100 write Production integrations
enterprise 1,000,000 1,000 admin High-volume or internal systems

Plans are assigned per subscription. Changing a subscription’s plan immediately updates its limits.

Daily quota

The daily call counter (callCountToday) increments on every successful gateway validate. It resets to 0 at midnight UTC.

The reset date is stored on the subscription — when a validate call arrives after midnight, the portal checks if callCountResetDate < today, clears the counter, and updates the reset date.

Quota headers

X-Quota-Limit: 10000
X-Quota-Used: 234
X-Quota-Remaining: 9766

Custom limits

Override either limit per subscription without changing the plan:

Terminal window
# Custom rate limit only
PUT /api/subscriptions/:id
{ "rateLimit": 50 }
# Custom daily quota only
PUT /api/subscriptions/:id
{ "callLimit": 5000 }
# Both
PUT /api/subscriptions/:id
{ "rateLimit": 50, "callLimit": 5000 }
# Revert to plan defaults
PUT /api/subscriptions/:id
{ "rateLimit": null, "callLimit": null }

Checking usage

Terminal window
GET /api/subscriptions/:id/usage
{
"callCountToday": 234,
"callLimit": 10000,
"rateLimit": 100,
"remainingToday": 9766,
"resetDate": "2024-01-16T00:00:00.000Z"
}

Usage tracking

The portal tracks two counters per subscription:

Field What it counts
callCount Total lifetime calls (never resets)
callCountToday Calls today (resets midnight UTC)

Both increment on every successful POST /api/gateway/validate.

Unlimited quotas

Set callLimit to a very large number for effectively unlimited access:

Terminal window
PUT /api/subscriptions/:id
{ "plan": "enterprise", "callLimit": 999999999 }

Or, to skip daily quota enforcement entirely, the gateway check is:

if (sub.callLimit && sub.callCountToday >= sub.callLimit) {
return reject(429, 'Daily quota exceeded');
}

Setting callLimit to 0 or null skips the quota check.