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

# Create a workspace

`POST /workspaces`

## Request

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

Creates a workspace. Account admins only.

## Request body

- WorkspaceWrite
  - `name` string, required: The name of the workspace.

## Response `200`

The new workspace.

- Workspace
  - `id` string, required: The ID of the workspace.
  - `name` string, required: The name of the workspace.
  - `dateCreated` string, date-time: When the workspace was created.
  - `dateUpdated` string, date-time: When the workspace was last changed.
  - `memberRole` string: The caller's role in this workspace.

## Other responses

- `400`: The request is invalid. `message` says why.
- `401`: The API key is missing or wrong.
- `403`: The plan limit is reached, the trial has expired, or the key has no access to this resource.

---

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