STACK
MENU
DOCS / API REFERENCE / USAGE

Usage API

GET /v1/usage is the Console's canonical usage, spend, and earnings response. It is operator-scoped and uses UTC windows.

bash
curl "https://api.getstack.run/v1/usage?since=2026-08-01T00:00:00Z&until=2026-09-01T00:00:00Z" \
  -H "Authorization: Bearer <access token>"

Consumption

  • consumption.activity.total counts every audit event only when total_coverage is complete. Partial coverage makes the total a lower bound.
  • consumption.activity.total_coverage states whether the activity total is complete or partial.
  • consumption.actions counts only actions charged against the monthly action allowance.
  • allowance_coverage states whether limit is known for that exact UTC month. allowance_plan is the plan the account is on (platform, internal, contract or none) for the current month and null for any other month.
  • detail_coverage states whether by_kind is complete, partial, or unavailable.
  • Legacy passports, proxy_calls, dropoffs, and skill_invocations fields have limit: null. They are breakdowns, not separate quotas.
  • A partner-managed account reads its own usage, allowances and pass-through counters like any customer; its partner only pays. Only for the accounts of a partner on a negotiated hard cap is the action allowance shared: consumption.actions.used is then the pool total, own_used is the caller's share, pooled is true, and tenants counts the accounts in the pool.

A non-GET proxy write is counted once when STACK admits the durable operation. Unchanged retries use the same operation and do not add another action. Operation-status and stored-response reads are unmetered. A proxy request refused after policy evaluation still consumes an attempt. LLM gateway calls remain separate actions and do not inherit the proxy write-recovery contract.

Seats, allowances, and inventory

Seats count every person on the account, the owner included; no plan caps them, so included and total are null. A billing-period response reports current-month pass-through allowances for L3 classifications, SMS, and email. A custom time window returns passthrough: null because the historical counters are not durable. Agents, service connections, published skills, and inbound webhook endpoints are current point-in-time counts under unlimited. For a custom window, agent and published-skill rows also include created_in_window.

Money

spend_cents reports actual STACK wallet spend by bucket. Top-ups, refunds, and adjustments are wallet movements, not product spend. LLM provider costs remain separate from STACK fees and wallet debits. The response also includes wallet balance and unpaid and lifetime publisher earnings.

An old month with unknown allowance coverage never borrows the current plan limit. Render the coverage field instead of inventing a historical quota.

Usage | Docs