GraphQL API

Usage

The live usage rollup for the current period, and your month-by-month history

Two queries show what your clients have used. Both need PARTNER_ADMIN and a tech provider org.

partnerUsageSummary

partnerUsageSummary: PartnerUsageSummary!

PARTNER_ADMIN, tech providers only.

Returns the live usage rollup for the current billing period. Takes no arguments.

Returns PartnerUsageSummary!

FieldTypeDescription
childrenInt!Number of MANAGED client orgs counted in this rollup.
opsUnitsInt!Metered operational units consumed this period, by your clients and your own provider org.
aiUnitsInt!Metered AI units consumed this period, counted the same way.
estimatedAmountCentsInt!Estimated charge for the period so far, in cents. Nets off your allowance bank.
currencyString!The currency estimatedAmountCents is expressed in.
opsAllowanceRemainingFloat!Projected ops allowance left in your bank if the period closed now.
aiAllowanceRemainingFloat!The same for AI units.
currentPeriodStartDateTime!Start of the open billing period.
currentPeriodEndDateTime!End of the open billing period.

Example

query Usage {
  partnerUsageSummary {
    children
    opsUnits
    aiUnits
    opsAllowanceRemaining
    aiAllowanceRemaining
    estimatedAmountCents
    currency
    currentPeriodStart
    currentPeriodEnd
  }
}
{
  "data": {
    "partnerUsageSummary": {
      "children": 14,
      "opsUnits": 48210,
      "aiUnits": 3907,
      "opsAllowanceRemaining": 0,
      "aiAllowanceRemaining": 1093,
      "estimatedAmountCents": 51840,
      "currency": "usd",
      "currentPeriodStart": "2026-10-15T00:00:00.000Z",
      "currentPeriodEnd": "2026-11-15T00:00:00.000Z"
    }
  }
}

opsUnits and aiUnits are total usage, not billable usage. Your allowance is a rolling bank that carries unused units forward and is netted off only when the charge is computed, so these numbers can far exceed what you are billed on. Read opsAllowanceRemaining and aiAllowanceRemaining for what is left, and estimatedAmountCents for what you will pay.

partnerUsageHistory

partnerUsageHistory(filter: TechProviderUsageFilterInput): [TechProviderMonthlyUsage!]!

PARTNER_ADMIN, tech providers only.

Your month-by-month usage history, for the periods that have closed. partnerUsageSummary covers the period in progress; this covers the ones behind it.

Arguments

ArgumentTypeRequiredDescription
filter.monthsIntNoReturn only the newest N periods. Omit for all of them.

Returns [TechProviderMonthlyUsage!]!

FieldTypeDescription
periodEndDateTime!The period this row covers.
opsUsedFloat!Total ops used in that period.
aiUsedFloat!Total AI units used in that period.
childrenInt!Client orgs with usage in that period.
estimatedAmountCentsInt!The amount actually charged for a closed period, in cents.

Example

query History {
  partnerUsageHistory(filter: { months: 2 }) {
    periodEnd opsUsed aiUsed children estimatedAmountCents
  }
}
{
  "data": {
    "partnerUsageHistory": [
      { "periodEnd": "2026-09-15T00:00:00.000Z", "opsUsed": 44120, "aiUsed": 3310, "children": 13, "estimatedAmountCents": 48200 },
      { "periodEnd": "2026-08-15T00:00:00.000Z", "opsUsed": 39870, "aiUsed": 2905, "children": 12, "estimatedAmountCents": 43150 }
    ]
  }
}

opsUsed and aiUsed are totals, with the allowance bank not netted off. The numbers in partnerUsageSummary move during the period, and estimatedAmountCents there is an estimate, not an invoice. How units are counted and billed is in Billing.

Was this page helpful?

  • Billing - the rate card, the allowance bank and your billing day
  • Client Orgs - the clients being counted

On this page