Skip to main content
Create Workspace
Creates a workspace. The authenticated caller becomes the ownerId. Omit parentWorkspaceId to create a root workspace; pass it to create a child.
  • Root creation requires the creator to have a verified email (else 403 workspace/email-not-verified). This is not a key-bypass gate: a service key acting as a named actingUserId still requires that user to be verified. On a purely external-auth project this makes root creation unavailable — see the external-auth limitation.
  • Child creation requires the create-sub-workspace capability on the parent (held directly or via reach). The creator becomes the child’s owner. No separate verified-email gate (the capability-holder is already a verified member up-tree).
inheritsFromParent is never accepted from client input — it is server-set from the project default at creation, and cannot be overridden when the project’s default is enforced. depth is likewise server-computed.

Body Parameters

string
required
Display name for the workspace. 1–100 characters.
object
Optional arbitrary developer-defined data (opaque JSON). Defaults to {}.
string | null
Optional UUID of a parent workspace. Absent or null → root workspace; the string "none" is refused with 400 workspace/unsupported-param (see Saying “no value”). Requires the create-sub-workspace capability on the parent.
string
required
Service keys only — the user to act as (the created workspace’s owner). Required for a key: a key that names nobody is refused with 400 workspace/missing-user-id. The named user must satisfy the same gates a self-driven call would: for a root workspace they must have a verified email.A user token always acts as its own user and must not send it (400 workspace/acting-user-not-allowed). See Acting on behalf of a user.

Response

Returns the created Workspace object.

Error Responses

Also returned when a service key creates a root workspace on behalf of an unverified actingUserId — keys do not bypass this gate. Ownership has exactly three doors (create, accept an invite, receive a transfer) and all three enforce it identically, which is what guarantees every workspace participant has a confirmed email.
The acting user can see the parent workspace but has no create-sub-workspace capability on it.
The parent workspace doesn’t exist, or the acting user has no relation to it (the two answer alike).
A service key called this route without naming an actingUserId. A workspace has to be created by somebody, so the key must name that user.
A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
A field this endpoint reads from the body was sent in the query string. actingUserId and every body field go in the JSON body.
Returned when a service key names an actingUserId that isn’t a user in this project.
See also: useCreateWorkspace · createWorkspace (node-sdk)