sdkDeterministic
Create workspace
pipeline.createWorkspace
Create a workspace for the authenticated personal-token owner after the same subscription checks as the UI. Supports first-run accounts with no existing workspace.
Parameters
workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
namerequired
string
No description.
settings
object
No description.
plan
string
No description.
founder | starter | growth | scale | dfy
Example
TypeScripttypescript
await pipeline.createWorkspace({"name": "example"})
Response
Success response schemajson schema
{"type": "object","properties": {"workspace": {"type": "object"}},"required": ["workspace"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.