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

# Create a workspace

`POST /workspaces`

Creates a new workspace and returns the created workspace.

## Headers

- `x-client-id` string, cuid, required — The ID of the client

## Request body

- WorkspaceCreate
  - `name` string, required — The name of the workspace

## Response `201`

Workspace created successfully

- Workspace
  - `id` string, cuid, required — The ID of the workspace
  - `name` string, required — The name of the workspace
  - `createdAt` string, date-time, required — The date and time of the creation for the workspace. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `updatedAt` string, date-time, required — The date and time of the last update for the workspace. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `archivedAt` string, date-time, nullable, required — The date and time the workspace was archived. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `clientId` string, cuid, required — The ID of the client

## Other responses

- `401` — Unauthorized
- `422` — The validation error(s)
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/steuerboard/apis/steuerboard-api.md) · [All operations](https://skmtc.net/steuerboard/apis/steuerboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/steuerboard/steuerboard-api/revisions/80748f72965e/schema)
