sdkDeterministic
Get workspace subscription
pipeline.getWorkspaceSubscription
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.
Parameters
workspaceId
string
Optional. Omitting it falls back to the authenticated user's personal subscription.
Example
TypeScripttypescript
await pipeline.getWorkspaceSubscription({})
Response
The operation is available, but its typed response schema has not been published yet.
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.