Workspaces / TypeScript SDK
Get workspace subscription
Get the workspace owner's subscription state in one call: planType (starter/pro/etc), status, isAdmin, trialEnd, trialDaysRemaining, isTrialActive, totalSeats, usedSeats, and currentPeriodEnd. Resolves to the workspace owner so all members see the same plan. Pipeline is BYOK - no usage credits are charged.
pipeline.getWorkspaceSubscriptionDeterministic operationParameters
workspaceIdOptional · string- Optional. Omitting it falls back to the authenticated user's personal subscription.
await pipeline.getWorkspaceSubscription({})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"description": "Optional. Omitting it falls back to the authenticated user's personal subscription."
}
}
}