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: 10000X-Quota-Used: 234X-Quota-Remaining: 9766Custom limits
Override either limit per subscription without changing the plan:
# Custom rate limit onlyPUT /api/subscriptions/:id{ "rateLimit": 50 }
# Custom daily quota onlyPUT /api/subscriptions/:id{ "callLimit": 5000 }
# BothPUT /api/subscriptions/:id{ "rateLimit": 50, "callLimit": 5000 }
# Revert to plan defaultsPUT /api/subscriptions/:id{ "rateLimit": null, "callLimit": null }Checking usage
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:
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.