Create a workspace
/v1/workspacesCreate a workspace.
Creates a workspace in organization. Without a slug, one is derived from the name: lower case, spaces as dashes, anything but letters, digits and dashes dropped (workspace if nothing is left). A signed-in user who creates a workspace becomes its admin. Returns 201 with the workspace.
Requires an organization owner or admin, or an organization-scoped va_ key with the admin role. Errors: 402 when the plan's workspace limit is reached; 409 when the slug is already used in the organization.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Request body application/json
the workspace's organization, name, and optional slug and description
namestringrequiredThe workspace's display name.
organizationstringrequiredThe slug of the organization to create the workspace in.
slugstringThe workspace's slug, unique within the organization. Omit to derive it from
name(lower case, spaces as dashes, other punctuation removed).descriptionstringAn optional description.
Responses
Created
idstring<uuid>The workspace's id (UUID), used as
workspace_idelsewhere in the API.organizationstringThe slug of the organization the workspace belongs to.
slugstringThe workspace's slug, unique within the organization, used in workspace URLs.
namestringThe workspace's display name.
descriptionstringA description of the workspace; absent when none was given.
default_routing_config_slugstringThe routing config the dashboard selects by default for this workspace; absent when none is set.
created_atstring<date-time>When the workspace was created (ISO 8601 date-time).
updated_atstring<date-time>When the workspace was last changed (ISO 8601 date-time).