Skip to main content
Usage is counted for each organization, in calendar months (UTC). This recipe reads the usage of a month, the cost per service, and the budgets. All three requests are read-only. Any member of the organization, and an API key of a project in it, can read them. See Organizations API. The CLI finds your organization from your credential. For the REST API and MCP, you need the organization ID. The projects list returns it as organization_id.

Read the usage of a month

period is a month as YYYY-MM. It defaults to the current month. A future month returns 400.
Without --json, the command prints a table with one row for each meter. Then it shows the AI triage of the month: the issues triaged against the plan’s monthly AI triage limit, the percent of the limit used, the state (within limit, near limit, or paused at limit), and the reset date.
The response has the plan, the month, and one entry in meters for each meter:
The meters are logs (telemetry), replays, checks (monitor checks), aiCredits, smsAlerts, and voiceAlerts. usage_charge_cents is an estimate: the invoice is the record. A meter with billing_status: "not_billed" is counted but has no overage charge.

Find what drives the cost

Group the cost by service, signal, project, meter, or tag:<resource attribute key>. limit shows the top groups, and the rest are under __other__.
The response has groups, a series of daily buckets, totals, and the rates used. Each group has key, billed_cents, list_cents, and its meters. from defaults to the start of the month and to to now. The report reads only the usage meters, never your telemetry.

Check the budgets

A budget caps the overage of one meter. In mode alert, Squasher notifies you at the cap. In mode stop, Squasher refuses new usage of the meter until the month ends or you raise the budget.
On the Free plan, available is false and budgets is empty. state is ok, warning (80% spent), reached, or stopped. Changing a budget needs an owner or billing admin in a signed-in session. An API key cannot do it. Do not change budgets from an agent without the person’s approval.

Compare the plans

The REST API has GET /v1/billing/plans. It returns one entry for each plan (free, pro, team, scale) with its limits and capabilities.

Next steps

Usage and budgets

What each meter counts and how budgets stop usage.

Plans and billing

Compare plans and change yours.