The Scrums.com API is planned and not yet publicly available. Endpoints and behaviour are subject to change before release.
Overview
The Usage & Metering API exposes platform consumption data at the Service Line level. All metered usage on the Scrums.com platform is recorded against a LIN-* identifier. This data feeds directly into invoice generation at the end of each billing period.
Usage events are immutable. They are generated by the platform as talent hours are logged, agent runs execute, infrastructure resources operate, and intelligence queries are processed. You can query this data but cannot write to it directly via the metering API.
An exception is the POST /v1/metering/events endpoint, which allows trusted external systems to ingest usage events for custom integrations or hybrid billing arrangements.
Core Concepts
Meters
A meter defines a named consumption metric and its unit of measure. Platform meters are pre-defined per product line. Meters are the schema for usage events.
Usage events
Each usage event records one unit of consumption: a time-stamped, metered quantity against a LIN-*. Events are append-only. They aggregate into the usage summary shown on Service Line billing responses.
Usage vs billing
Usage is raw consumption. Billing applies pricing rules (rate, plan commitments, overages) to usage to produce invoice line items. The metering API shows you raw usage; the Billing & Invoices API shows you what that usage costs.
Endpoints
GET /v1/usage
List usage records for an organization or workspace within a date range.
Request
Query parameters
Response
GET /v1/usage/summary
Aggregated usage summary per Service Line over a period.
Request
Response
GET /v1/meters
List all available meters with their units and applicable product lines.
Response
POST /v1/metering/events
Ingest external usage events for hybrid billing or custom integrations.
Request
Response
Notes
idempotency_key prevents duplicate event ingestion. Resubmitting the same key within 48 hours returns the original event record.
- External ingestion requires the API key to have the
metering:write scope.
- Only meters permitted by the Service Line’s billing model are accepted.
Common Workflows
Monthly usage reconciliation
Objects
Usage event
Best Practices
- Use
service_line_id filtering as your primary lens. Usage queries without a service_line_id or workspace_id filter across the entire organization. For large orgs with many Service Lines, always filter.
- Use
idempotency_key on all POST /v1/metering/events calls. External systems frequently retry on network failure. Without an idempotency key, retries create duplicate usage records that inflate invoices.
- Cross-check usage summaries against invoice line items. Usage summaries show raw consumption; invoices apply pricing. The numbers will differ when plan commitments, volume discounts, or overages apply.