Meter API calls, agent runs and seats. Enforce limits as usage happens, show customers what they've used, and keep Stripe quantities accurate.
Usage by user · API calls this period
Running low?500 calls addedawait client.track( { event: "api-call", company: { id: "acme" }, user: { id: "user-42" }, }, { idempotencyKey: "request-123-attempt-1" },);
Schematic ties each event to a company and a user, then adds it up against the feature's limit. A retry with the same key is dropped.
Team seats · What your plan allocates
response = client.companies.upsert_company( keys={"id": "acme"}, traits={"seats_in_use": 4},)
For something that goes up and down, like seats, projects or devices, report the current trait. Schematic compares it to that company's limit.
Entitlement thresholds · AI conversations
const resp = await client.checkFlagWithEntitlement( { company, user }, "ai-conversations", );console.log(resp.entitlement?.usage);console.log(resp.entitlement?.allocation);console.log(resp.value);
Read usage and allocation from the same entitlement your app enforces. Set a warning under the hard limit so the customer sees it coming.
June API usage · One total per company
await client.track( { event: "api-call", company: { id: "acme" }, quantity: -5, }, { sentAt: new Date("2026-06-17T14:30:00Z"), trustedClientClock: true, },);
Pull incremental usage by company and feature for any date range. Correct recent usage with a negative quantity, or backfill history for analytics without firing billing effects.
A counter and a monthly export turn into a pipeline you have to maintain.
One global counter breaks once plans, overrides and billing periods differ by customer.
override in a spreadsheet
A retry counts the same call twice, a late event lands in the wrong period, and the customer notices first.
retry counted twicelate event, wrong period
A monthly export gives Stripe a quantity, but it can't show which events made that number.
quantity with no trail
Report each event or current trait through the usage metering API. The same record powers enforcement, the customer's usage view and billing.
Use an event-based feature for actions over a period, or a trait-based feature for a current value like seats. Set the plan's limit, period and reset rule.
Metered feature setup docsSend a track event or update a trait. SDKs buffer and retry, and an idempotency key drops a repeated event.
Track event and idempotency docsA flag check returns access, current usage and allocation from the customer's entitlement. Add a warning threshold below the hard limit.
Usage and allocation docsPull usage history per company, show it in your app, and sync billable quantities to the mapped Stripe metered product.
Cross-company usage reporting docs// One billable actionawait client.track({event: "api-call",company: { id: companyId },user: { id: userId },}, { idempotencyKey: requestId });// Retry the same request with the same key.
response = client.companies.upsert_company(keys={"id": company_id},traits={"seats_in_use": 4,"projects_in_use": 12,},)
const resp = await client.checkFlagWithEntitlement({ company, user },"api-access",);console.log(resp.entitlement?.usage);console.log(resp.entitlement?.allocation);console.log(resp.value);
Open the events behind a billable quantity to see the timestamp, company, user and properties on each one. See in Stripe opens the matching billing record.
Use events for API calls, tokens and agent runs. Use traits for counts that go up and down, like seats and projects.
Duplicate keys drop for 24 hours
Retry a track event with the same idempotency key and Schematic drops the duplicate for 24 hours. SDKs buffer, flush and retry for you.
Negative quantities and trusted client timestamps correct recent usage, and billing follows. Analytics-only backfill imports older history without billing effects or webhooks.
Pull incremental usage by company, feature and period, as a total or in hourly to monthly buckets. Each range includes its start and excludes its end, so adjacent periods never overlap.
Build customer usage views on the checks and usage history your app already uses. Show current usage, the limit and usage by user without a second reporting pipeline.
For real-time usage metering, set a numerical limit, leave usage uncapped or read each company's limit from a trait. Flag checks return usage and allocation, and a usage warning adds a lower threshold.
Map a usage-based feature to a Stripe metered product, and Schematic reports billable usage to Stripe in real time. Stripe issues the invoice. Schematic keeps the quantities accurate and links them back to the events your app sent.
Usage shows up in your app, the Schematic dashboard and Stripe, so you aren't reconciling a monthly export by hand.
The company profile's Subscription tab shows the quantity behind each line item and the period it covers. See in Stripe opens the matching record.
Set up pay as you go, fixed fee with overage, volume or graduated pricing on the metered feature. Use credits when you want a prepaid balance instead.
Send an event for every request, report or agent action. Check the plan's remaining usage before the next action, then report usage by company and user.
Report the current trait when it changes, instead of inventing events for a resource count. Schematic compares the current value with the limit on that company's plan.
Include a quantity with the plan and let customers keep going past it, or set volume and graduated tiers. Show the same usage and limit in the customer portal.
“We just went through a spreadsheet to see the usage, then looked at everyone's specific plan to calculate billing manually. There was no enforcement.”

Pagos ran on custom contracts and spreadsheet billing. Usage was collected by hand, and every customer needed someone from the commercial or finance team. Schematic now meters API consumption against each plan.
Read why Pagos replaced its homegrown billing stackGetting usage in is one job, whether you’re building it yourself or buying other usage metering software. Plan-aware enforcement, customer usage and invoicing are the next three.
Build in-house | Other usage-based billing platforms | ||
|---|---|---|---|
Events and current-state usage | Schematic✓Track events for actions; company traits for current values such as seats | Build in-houseYou design and maintain both | Other usage-based billing platformsUsage events, including periodic heartbeat events |
Safe retries | Schematic✓Optional idempotency key; duplicates dropped for 24 hours per environment and event type | Build in-houseYou build it | Other usage-based billing platformsEvent-ID deduplication, with the retention window varying by platform |
Late usage and corrections | Schematic✓Negative quantities; recent billing corrections; analytics-only backfill up to 365 days | Build in-houseYou build it | Other usage-based billing platformsNegative events, backdated events and historical ingest, with workflows and windows varying by platform |
Usage by company and feature | Schematic✓Incremental feature usage history by company, feature and period | Build in-houseYou build it | Other usage-based billing platformsUsage APIs and dashboards grouped by customer and event properties |
Customer-facing usage UI | Schematic✓Usage and allocation APIs plus company/feature reporting for your own customer views | Build in-houseYou build it | Other usage-based billing platformsEmbeddable usage dashboards or usage APIs, based on the platform |
Plan-aware access check | Schematic✓Flag check returns access, usage and allocation from the plan or company override | Build in-houseYou build it | Other usage-based billing platformsBalances and threshold alerts, with enforcement handled in your app |
Works with Stripe | Schematic✓Maps features to Stripe metered products and reports billable usage in real time | Build in-houseYou map, sync and reconcile it | Other usage-based billing platformsGenerates usage invoices and integrates with Stripe for payment collection or invoice sync |
Trace from quantity to source events | Schematic✓Company, user, timestamp and full properties; line items link to Stripe | Build in-houseYou build it | Other usage-based billing platformsEvent explorers, usage APIs and invoice breakdowns |
Best for | SchematicTeams that want metering, plan enforcement, in-app usage and Stripe sync from one record | Build in-houseUnique needs and spare engineering capacity | Other usage-based billing platformsComplex usage rating, contracts and invoicing |
Built to stay up, stay secure and stay observable.
Short answers, each one backed by the docs.
Capture events and traits, enforce plan limits, show usage in your product, and keep Stripe quantities accurate.
Pick a time with the Schematic team. 30 minutes, straight to your questions.