---
title: "Create a workspace"
method: POST
path: "/v2/workspaces"
tags: ["Workspaces"]
---

# Create a workspace

`POST /v2/workspaces`

## Request

- Base URL: `https://api.sigmacomputing.com`
- URL: `https://api.sigmacomputing.com/v2/workspaces`
- Auth: HTTP bearer

This endpoint allows clients to create a workspace with specific characteristics.

### Usage notes
- Set **NoDuplicates** to **true** to prevent the creation of a workspace with a name that already exists.

### Usage scenarios
- **Initial setup**: Useful for users setting up a new workspace after signing up.
- **Project separation**: Helps in creating separate workspaces for different projects or teams.

### Best practices
- **Check for existing names**: Before setting `noDuplicates` to true, make sure to search for existing workspace names to avoid conflicts.
- **Consistent naming conventions**: Adopt a consistent naming convention for workspaces to ensure clarity and avoid confusion.

## Request body

- object
  - `name` string, required: Name of the new workspace.
  - `noDuplicates` boolean: Set to true to avoid creating a workspace with a duplicate name.

## Response `200`

The response body.

- union
  - WorkspacesCreateWorkspaceResponse2000
    - `workspaceId` string, required
    - `workspaceUrlId` string, required: Base62-encoded identifier used in Sigma workspace URLs.
    - `name` string, required
    - `createdBy` string, required
    - `updatedBy` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
  - WorkspacesCreateWorkspaceResponse2001
    - `workspaceIds` string[], required
    - `workspaceUrlIds` string[], required

---

[API](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api.md) - [All operations](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sigmacomputing/apis/sigma-rest-api/revisions/fb6036208c49?raw)
