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!
| Field | Type | Description |
|---|---|---|
children | Int! | Number of MANAGED client orgs counted in this rollup. |
opsUnits | Int! | Metered operational units consumed this period, by your clients and your own provider org. |
aiUnits | Int! | Metered AI units consumed this period, counted the same way. |
estimatedAmountCents | Int! | Estimated charge for the period so far, in cents. Nets off your allowance bank. |
currency | String! | The currency estimatedAmountCents is expressed in. |
opsAllowanceRemaining | Float! | Projected ops allowance left in your bank if the period closed now. |
aiAllowanceRemaining | Float! | The same for AI units. |
currentPeriodStart | DateTime! | Start of the open billing period. |
currentPeriodEnd | DateTime! | 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
| Argument | Type | Required | Description |
|---|---|---|---|
filter.months | Int | No | Return only the newest N periods. Omit for all of them. |
Returns [TechProviderMonthlyUsage!]!
| Field | Type | Description |
|---|---|---|
periodEnd | DateTime! | The period this row covers. |
opsUsed | Float! | Total ops used in that period. |
aiUsed | Float! | Total AI units used in that period. |
children | Int! | Client orgs with usage in that period. |
estimatedAmountCents | Int! | 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.
Related
- Billing - the rate card, the allowance bank and your billing day
- Client Orgs - the clients being counted