Skip to main content
POST
Create a workspace
Creates a workspace and returns your API key scoped to it. Where roles are enforced, this needs the admin or owner role. See Projects for when to split work into separate workspaces. Requires the admin or owner role where roles are enforced. The response includes the caller’s API key for the new workspace.
Availability: Cloud · Community (self-hosted) · Enterprise (self-hosted)

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Body

application/json
name
string
required

Display name; at least one letter or digit. The slug is derived from it.

Required string length: 1 - 100
Example:

"Growth team"

Response

Workspace created

id
string
name
string
slug
string
createdAt
string<date-time>
apiKey
string | null

The creator's workspace API key (oc_…), minted with the workspace.