Skip to main content
POST
Create workspace

Authorizations

Authorization
string
header
required

Bearer token for the authenticated caller.

Headers

idempotency-key
string

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
organization
string
required

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
name
string
required
Required string length: 1 - 100
Pattern: ^(?=.*\S)[^\p{Cc}\p{Zl}\p{Zp}]+$
slug
string
Required string length: 3 - 39

Response

Workspace created

organization_id
string
required

ID of the organization that owns this workspace.

Required string length: 1 - 54
id
string
required

Workspace ID

Required string length: 1 - 53
Example:

"ws_j572abc123def4"

name
string
required

Display name

Example:

"Acme Research"

slug
string
required

URL-safe workspace slug

plan
object
required
workspace_class
enum<string>
required
Available options:
standard,
platform,
sandbox
lifecycle
object
required
created_at
integer
required

Unix timestamp (seconds)

Required range: x >= 0
updated_at
integer
required

Unix timestamp (seconds)

Required range: x >= 0
etag
string
required