Usage

CmdCal meters usage by counting successful render operations against your plan's monthly document limit. The dashboard shows real-time usage for the current billing period.

What is Metered

Each successful call to /api/v2/render that produces output counts as one document toward your monthly limit. Specifically:

  • Counted: renders with status: "success" in the usage log
  • Not counted: preflight-only calls, failed renders, and playground requests

Each usage log entry records:

  • org_id -- the organization that owns the render
  • api_key_id -- which key was used (if API-authenticated)
  • status -- success, error, or timeout
  • render_time_ms -- server-side render latency
  • error_message -- populated on failures

Viewing Usage in the Dashboard

The dashboard overview at /dashboard shows a usage bar for the current billing period:

  • Documents used / Monthly limit (e.g. "142 / 2,000 documents")
  • Percentage used with color coding: green (under 80%), amber (80-99%), red (limit reached)
  • Overage count and per-document cost on paid plans

Usage API

The usage endpoint returns the full summary:

Terminal
curl https://api.paperjsx.com/api/dashboard/usage \
  -H "Cookie: <session>"

Response fields:

FieldTypeDescription
totalRendersnumberTotal renders this period
successCountnumberSuccessful renders
errorCountnumberFailed renders
avgRenderTimeMsnumberAverage render latency (ms)
monthlyRenderLimitnumberPlan document cap
overagePerDocnumber or nullOverage cost in cents, null for hard cap
overageCountnumberDocuments beyond the limit
limitReachedbooleanTrue when free-tier hard cap is hit
tierstringCurrent plan tier
dailyBreakdownarrayPer-day breakdown with date, renders, errors, avgLatency

Usage Alerts

The dashboard shows inline warnings as you approach your limit:

  • At 80% usage on the free tier, a prompt suggests upgrading to Pro.
  • When the free-tier limit is reached, the usage bar turns red and the API returns 429 with ERR_USAGE_LIMIT_EXCEEDED for new render requests.

Overage Behavior

TierMonthly LimitAt Limit
Free5 docsHard cap -- renders blocked until next period
Pro2,000 docsOverage at $0.03/doc
Business10,000 docsOverage at $0.02/doc

On paid plans, rendering continues past the limit and overage charges appear on your next invoice.

Activation Tracking

The first successful render sets activated_at on your organization record. This timestamp is used internally to track when an organization moves from sign-up to first real usage.

Next Steps

  • Billing -- understand plan tiers and overage pricing
  • Dashboard -- see the usage bar in context
  • API Keys -- usage is tracked per key via last_used_at