EndpointsCreate workspace

workspaces

Create workspace

Creates a workspace in the named Organization; you must be an owner or admin of it and become the workspace owner. An Idempotency-Key is scoped to that user. Reusing it with the same request returns the existing Workspace in its current state; a different request returns 409/7015. Keys do not expire; replay remains available until the Workspace is permanently deleted.

POST/workspaces
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Optional caller-supplied idempotency key. Any non-empty key up to 64 characters is accepted. Endpoint-specific documentation describes how the key is used.

Required string length: 1 - 64

Example: "create-prod-2026-05-07"

Body

application/json
organizationstringrequired

The Organization the Workspace is created in (its parent). Required: the server picks none. You must be an owner or admin of it. Clients may default it, as the dashboard does from its current Organization and the CLI from its configuration.

Required string length: 1 - 54

namestringrequired

Required string length: 1 - 100

Pattern: ^(?=.*\S)[^\p{Cc}\p{Zl}\p{Zp}]+$

slugstring

Required string length: 3 - 39

Response

application/json

Workspace created

organization_idstringrequired

ID of the organization that owns this workspace.

Required string length: 1 - 54

idstringrequired

Workspace ID

Required string length: 1 - 53

Example: "ws_j572abc123def4"

namestringrequired

Display name

Example: "Acme Research"

slugstringrequired

URL-safe workspace slug

planobjectrequired
child attributes
plan.tierstringrequired
plan.billed_byenum<string>required

Available options: platform, seller

workspace_classenum<string>required

Available options: standard, platform, sandbox

lifecycleobjectrequired
child attributes
lifecycle.stateenum<string>required

Lifecycle state of the workspace. DELETING means deletion was accepted and the workspace is retained until purge_at.

Available options: ACTIVE, DELETING, PURGED

lifecycle.deletion_phaseenum<string> | nullrequired

Progress of the accepted deletion request, or null when no deletion has been recorded.

Available options: ACCEPTED, RUNNING, SUCCEEDED, FAILED

lifecycle.deleted_atinteger | nullrequired

When deletion was accepted, or null.

Required range: x >= 0

lifecycle.purge_atinteger | nullrequired

Scheduled retention expiry that #955 owns as the purge executor, or null.

Required range: x >= 0

created_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

updated_atintegerrequired

Unix timestamp (seconds)

Required range: x >= 0

etagstringrequired