# Create a workspace (/zh/growsocmed/docs/api-reference/me/create-workspace)

Create a workspace (you own it) and switch to it

POST /workspaces

```json
{
  "tags": [
    "Me"
  ],
  "summary": "Create a workspace",
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "required": [
            "name"
          ]
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "Created",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "role": {
                "type": "string"
              },
              "is_default": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "name",
              "role",
              "is_default"
            ]
          }
        }
      }
    }
  },
  "operationId": "create-workspace",
  "description": "Create a workspace (you own it) and switch to it"
}
```