API reference / Account
Get the plan of the workspace
The plan of the workspace at Troopy: the Trial, Pro, Max or Ultra, what the plan lets it do, whether its teammates work, and when it renews or ends. Each workspace pays for itself, and people are free. Owners and admins change the plan in Settings > Billing. Needs an owner or admin.
/api/v1/billingOther ways to call it
troopy billing gettroopy_get_billingResponse
200 · application/jsondata*object10 properties
billed*booleanWhether Troopy charges for workspaces here. False: every workspace has Ultra
state*enum<string>trial: the 3-day Trial of the organization, on a card that Stripe charges at trialEnd. past_due: Stripe tries the card again. ended and none: the teammates stop
trialactivepast_dueendednone
plan*enum<string> | nullThe plan of the subscription, also in its Trial
promaxultra
interval*enum<string> | nullHow often the workspace pays
monthyear
works*booleanThe teammates work, and the computer wakes
big*booleanA computer above the small one, for faster builds, tests and browsing: Max and Ultra, also in a Trial
limits*objectWhat the plan lets the workspace do
5 properties
teammates*integervoiceMinutes*integerMinutes of voice a month on Troopy's own OpenAI key
picturesPerDay*integerruns*objectThe most that one teammate may be set to
3 properties
rounds*integerrunsPerDay*integerusdPerRun*numberreplaysPerDay*integerThe new session replays that the site records in a UTC day
trialEnd*string | nullWhen the Trial ends, and Stripe charges the card unless someone cancelled
periodEnd*string | nullWhen the plan renews
cancelAt*string | nullWhen the plan stops, after a cancel