Skip to main content
POST
Create a workspace

Authorizations

hookie_session
string
cookie
required

The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.

Headers

X-Requested-With
enum<string>
required
Available options:
fetch
Idempotency-Key
string<uuid>

Optional. Must match request_id. Creation uses its own per-person receipt across workspaces.

Body

application/json
name
string
required

Workspace display name. Whitespace is trimmed. Control characters are refused.

Required string length: 1 - 80
request_id
string<uuid>
required

Generate a new UUID for each intended workspace. Reuse it for every retry of the same creation.

template
enum<string>
default:blank
Available options:
blank,
juniper-trail

Response

The same person already created this workspace with these request details and still has access to the result.

workspace
object
required
project_id
string
required

The Default project for a blank workspace, or Commerce Operations for the Juniper Trail demo.

template
enum<string>
required
Available options:
blank,
juniper-trail