supportPlan
query · in the family Billing and the wallet
What it does
Your handholding-plan picture — the size class your recent usage lands in, what a quarter costs at that size, the per-incident price without a plan, and where your plan stands (waiting, active, canceled, or lapsed).
The caller group's handholding-plan report. Self-group BY construction (no target arg); a plan-less group answers standing 'none' with its honest classing (a quiet group is Small). Requires authentication. Template class A16_BILLING (hand-derived v93).
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Billing and the wallet — Your platform bill, token purchases and the usage and cost reads.
Roles that may call it:
- Owner
- Manager
- Associate Manager
- An API key whose scope allows
api:supportPlan
What happens
Reads only.
Returns
SupportPlanReport SupportPlanReport! — The caller group's handholding-plan report: the live size classing (what a purchase today charges), the ruled per-incident price, and the plan's standing in the ONE coverage vocabulary.
Example request
query ExampleSupportPlan {
supportPlan {
sizeClass
quarterUsdCents
basisTokensPerMonth
thresholdsVersion
incidentUsdCents
standing
onboardingUntil
onboardingCovers
includedDays
purchasedAt
activatesAt
coveredThroughMonth
canceledAt
}
}Example response
{
"data": {
"supportPlan": {
"sizeClass": "<size class>",
"quarterUsdCents": 1,
"basisTokensPerMonth": 1,
"thresholdsVersion": 1,
"incidentUsdCents": 1,
"standing": "<standing>",
"onboardingUntil": "<onboarding until>",
"onboardingCovers": true,
"includedDays": 1,
"purchasedAt": "2027-01-31T00:00:00.000Z",
"activatesAt": "2027-01-31T00:00:00.000Z",
"coveredThroughMonth": "<covered through month>",
"canceledAt": "2027-01-31T00:00:00.000Z"
}
},
"extensions": {
"at": {
"callId": "01EXAMPLE-CALL-ID",
"version": {
"requested": null,
"serviced": {
"name": "genesis",
"number": 0
}
}
}
}
}Errors this call can answer
VALIDATION/INVALID— Something in the request is not valid. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)