---
title: "Create a workspace; the caller owns it"
method: POST
path: "/workspaces"
tags: ["workspaces"]
---

# Create a workspace; the caller owns it

`POST /workspaces`

## Request

- Base URL: `https://api.swingfactor.ai/v1`
- URL: `https://api.swingfactor.ai/v1/workspaces`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string

## Request body

- WorkspaceBody
  - `name` string, required

## Response `201`

Created.

- Workspace
  - `id` string, uuid, required
  - `name` string, required
  - `ownerId` string, uuid, required
  - `myRole` 'owner' | 'editor' | 'viewer', required
  - `createdAt` string, required
  - `updatedAt` string, required
  - `links` WorkspaceLinks, required: Relative /v1 URLs to follow.
    - `self` string, required
    - `members` string, required
    - `invitations` string, required
    - `entitlements` string, required
    - `export` string, required
    - `questions` string, required
    - `content` string, required

## Other responses

- `401`: No token, or not a valid one: `unauthorized`.
- `403`: The plan holds no more.

---

[API](https://skmtc.dev/swingfactor/apis/swingfactor-api.md) · [All operations](https://skmtc.dev/swingfactor/apis/swingfactor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/swingfactor/apis/swingfactor-api/revisions/c2fe881a39c3?raw)
